Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ profile_card = """
|
|
| 36 |
custom_css = """
|
| 37 |
body { background: #0f0f1a; font-family: sans-serif; }
|
| 38 |
.profile-card {
|
| 39 |
-
width: 300px; margin: 20px auto; text-align: center; padding: 20px;
|
| 40 |
border-radius: 20px; background: linear-gradient(145deg, #2c2f4a, #1b1c30);
|
| 41 |
box-shadow: 0 0 30px rgba(0,255,255,0.2); transition: transform 0.3s ease-in-out;
|
| 42 |
}
|
|
@@ -55,7 +55,6 @@ body { background: #0f0f1a; font-family: sans-serif; }
|
|
| 55 |
"""
|
| 56 |
|
| 57 |
with gr.Blocks(css=custom_css) as demo:
|
| 58 |
-
gr.HTML(profile_card)
|
| 59 |
gr.Markdown("## 🚘 Vehicle MPG Predictor")
|
| 60 |
gr.Markdown("Enter vehicle details to predict Combined MPG")
|
| 61 |
|
|
@@ -79,4 +78,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 79 |
outputs=result
|
| 80 |
)
|
| 81 |
|
|
|
|
|
|
|
|
|
|
| 82 |
demo.launch()
|
|
|
|
| 36 |
custom_css = """
|
| 37 |
body { background: #0f0f1a; font-family: sans-serif; }
|
| 38 |
.profile-card {
|
| 39 |
+
width: 300px; margin: 40px auto 20px auto; text-align: center; padding: 20px;
|
| 40 |
border-radius: 20px; background: linear-gradient(145deg, #2c2f4a, #1b1c30);
|
| 41 |
box-shadow: 0 0 30px rgba(0,255,255,0.2); transition: transform 0.3s ease-in-out;
|
| 42 |
}
|
|
|
|
| 55 |
"""
|
| 56 |
|
| 57 |
with gr.Blocks(css=custom_css) as demo:
|
|
|
|
| 58 |
gr.Markdown("## 🚘 Vehicle MPG Predictor")
|
| 59 |
gr.Markdown("Enter vehicle details to predict Combined MPG")
|
| 60 |
|
|
|
|
| 78 |
outputs=result
|
| 79 |
)
|
| 80 |
|
| 81 |
+
# 👤 Profile Card shown below prediction
|
| 82 |
+
gr.HTML(profile_card)
|
| 83 |
+
|
| 84 |
demo.launch()
|