Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,19 @@ bmi = gr.Interface(fn=calculate_bmi,
|
|
| 26 |
gr.Slider(0,130, label="Weight in kg")],
|
| 27 |
outputs = "text",
|
| 28 |
title="BMI Calculator in Metrics",
|
| 29 |
-
description="Calculate your BMI (Body Mass Index) based on height **(cm)** and weight **(kg)**.\n\nDeveloped by: Parthebhan Pari \n\n**BMI Categories:**\n- Underweight = <18.5\n- Normal weight = 18.5–24.9\n- Overweight = 25–29.9\n- Obesity = BMI of 30 or greater"
|
| 30 |
-
|
| 31 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
bmi.launch(share=True)
|
|
|
|
| 26 |
gr.Slider(0,130, label="Weight in kg")],
|
| 27 |
outputs = "text",
|
| 28 |
title="BMI Calculator in Metrics",
|
| 29 |
+
description="Calculate your BMI (Body Mass Index) based on height **(cm)** and weight **(kg)**.\n\nDeveloped by: Parthebhan Pari \n\n**BMI Categories:**\n- Underweight = <18.5\n- Normal weight = 18.5–24.9\n- Overweight = 25–29.9\n- Obesity = BMI of 30 or greater"
|
| 30 |
+
|
| 31 |
)
|
| 32 |
+
|
| 33 |
+
# Custom CSS for dark theme
|
| 34 |
+
bmi.css("""
|
| 35 |
+
body {
|
| 36 |
+
background-color: #121212;
|
| 37 |
+
color: #FFFFFF;
|
| 38 |
+
}
|
| 39 |
+
.gradio-interface {
|
| 40 |
+
box-shadow: none;
|
| 41 |
+
}
|
| 42 |
+
""")
|
| 43 |
+
|
| 44 |
bmi.launch(share=True)
|