Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,17 +19,6 @@ def calculate_bmi(Name,height_cm, weight_kg):
|
|
| 19 |
emoji = "😱"
|
| 20 |
|
| 21 |
return f"Name : {Name}\n\nYour BMI: {bmi:.2f}\nCategory: {category} {emoji} "
|
| 22 |
-
|
| 23 |
-
# Custom CSS for dark theme
|
| 24 |
-
custom_css = """
|
| 25 |
-
body {
|
| 26 |
-
background-color: #121212;
|
| 27 |
-
color: #FFFFFF;
|
| 28 |
-
}
|
| 29 |
-
.gradio-interface {
|
| 30 |
-
box-shadow: none;
|
| 31 |
-
}
|
| 32 |
-
"""
|
| 33 |
|
| 34 |
bmi = gr.Interface(fn=calculate_bmi,
|
| 35 |
inputs=['text',
|
|
@@ -38,7 +27,6 @@ bmi = gr.Interface(fn=calculate_bmi,
|
|
| 38 |
outputs="text",
|
| 39 |
title="BMI Calculator in Metrics",
|
| 40 |
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",
|
| 41 |
-
|
| 42 |
-
)
|
| 43 |
|
| 44 |
bmi.launch(share=True)
|
|
|
|
| 19 |
emoji = "😱"
|
| 20 |
|
| 21 |
return f"Name : {Name}\n\nYour BMI: {bmi:.2f}\nCategory: {category} {emoji} "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
bmi = gr.Interface(fn=calculate_bmi,
|
| 24 |
inputs=['text',
|
|
|
|
| 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)
|