ernani
commited on
Commit
·
023b853
1
Parent(s):
7fca324
updating language output and description
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ FITNESS PLAN
|
|
| 41 |
gr.Markdown("# AI Fitness Coach")
|
| 42 |
|
| 43 |
with gr.Tabs():
|
| 44 |
-
with gr.Tab("Create Fitness Plan"):
|
| 45 |
with gr.Row():
|
| 46 |
age = gr.Number(label="Age", value=0)
|
| 47 |
weight = gr.Number(label="Weight (kg)", value=0)
|
|
@@ -88,6 +88,11 @@ FITNESS PLAN
|
|
| 88 |
choices=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
|
| 89 |
label="Preferred Workout Days"
|
| 90 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
activity_level = gr.Radio(
|
| 93 |
choices=["Sedentary", "Lightly active", "Moderately active", "Highly active"],
|
|
@@ -115,7 +120,7 @@ FITNESS PLAN
|
|
| 115 |
age, weight, height, gender,
|
| 116 |
primary_goal, target_timeframe,
|
| 117 |
workout_preferences, workout_duration,
|
| 118 |
-
workout_days, activity_level,
|
| 119 |
health_conditions, dietary_preferences
|
| 120 |
],
|
| 121 |
outputs=output
|
|
|
|
| 41 |
gr.Markdown("# AI Fitness Coach")
|
| 42 |
|
| 43 |
with gr.Tabs():
|
| 44 |
+
with gr.Tab("Create Fitness Plan - Workout"):
|
| 45 |
with gr.Row():
|
| 46 |
age = gr.Number(label="Age", value=0)
|
| 47 |
weight = gr.Number(label="Weight (kg)", value=0)
|
|
|
|
| 88 |
choices=["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
|
| 89 |
label="Preferred Workout Days"
|
| 90 |
)
|
| 91 |
+
|
| 92 |
+
output_language = gr.Radio(
|
| 93 |
+
choices=["English", "Spanish", "French", "German", "Italian", "Portuguese", "Russian", "Arabic", "Chinese", "Japanese", "Korean", "Vietnamese", "Other"],
|
| 94 |
+
label="Output Language"
|
| 95 |
+
)
|
| 96 |
|
| 97 |
activity_level = gr.Radio(
|
| 98 |
choices=["Sedentary", "Lightly active", "Moderately active", "Highly active"],
|
|
|
|
| 120 |
age, weight, height, gender,
|
| 121 |
primary_goal, target_timeframe,
|
| 122 |
workout_preferences, workout_duration,
|
| 123 |
+
workout_days, activity_level, output_language,
|
| 124 |
health_conditions, dietary_preferences
|
| 125 |
],
|
| 126 |
outputs=output
|