Spaces:
Sleeping
Sleeping
TuanScientist
commited on
Commit
·
941ac31
1
Parent(s):
77feed5
Update app.py
Browse files
app.py
CHANGED
@@ -124,11 +124,12 @@ def do(height, weight, age, gender, activities, goal):
|
|
124 |
calorie_goal = f"{calorie_goal} / Ngày "
|
125 |
return bmi,bmr,tdee, calorie_goal
|
126 |
|
127 |
-
|
128 |
# Create a Gradio interface
|
|
|
129 |
interface = gr.Interface(fn=do, inputs=inputs, outputs=outputs,allow_flagging="never",
|
130 |
title="Đo lường chỉ số sức khỏe",
|
131 |
-
description=
|
132 |
|
133 |
# Launch the interface
|
134 |
interface.launch()
|
|
|
124 |
calorie_goal = f"{calorie_goal} / Ngày "
|
125 |
return bmi,bmr,tdee, calorie_goal
|
126 |
|
127 |
+
description_html = "<div style='text-align: center;'>Ứng dụng này giúp bạn đo lường chỉ số sức khỏe thông qua chỉ số BMI, BMR và TDEE và đưa ra lượng calo cần thiết mỗi ngày dựa trên mục tiêu của bạn.</div>"
|
128 |
# Create a Gradio interface
|
129 |
+
|
130 |
interface = gr.Interface(fn=do, inputs=inputs, outputs=outputs,allow_flagging="never",
|
131 |
title="Đo lường chỉ số sức khỏe",
|
132 |
+
description=description_html)
|
133 |
|
134 |
# Launch the interface
|
135 |
interface.launch()
|