Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from typing import List, Literal, Tuple
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# -------------------------------
|
| 5 |
# Helpers: BMI / BMR / TDEE
|
| 6 |
# -------------------------------
|
|
@@ -73,18 +82,7 @@ GOAL_SPLITS = {
|
|
| 73 |
"Maintain": ["Upper", "Lower", "Full Body", "HIIT/Cardio", "Mobility"],
|
| 74 |
"Build muscle": ["Push", "Pull", "Legs", "Upper", "Lower", "Mobility"]
|
| 75 |
}
|
| 76 |
-
# --- Motivation messages (edit freely) ---
|
| 77 |
-
MOTIVATION = [
|
| 78 |
-
"You’re doing great—one step at a time! 💪",
|
| 79 |
-
"Small habits, big results. Keep going. 🔁",
|
| 80 |
-
"Hydrate and move—your future self thanks you. 💧",
|
| 81 |
-
"Form first, weight second. You’ve got this. 🧠",
|
| 82 |
-
"Consistency beats intensity. Show up today. ✅",
|
| 83 |
-
]
|
| 84 |
|
| 85 |
-
def rotate_msg(i: int):
|
| 86 |
-
msg = MOTIVATION[i % len(MOTIVATION)]
|
| 87 |
-
return msg, i + 1
|
| 88 |
|
| 89 |
def session_template(name: str, level: str, equipment: str) -> List[str]:
|
| 90 |
# بسيط ومفهوم للمبتدئ
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from typing import List, Literal, Tuple
|
| 3 |
+
MOTIVATION = [
|
| 4 |
+
"You’re doing great—one step at a time! 💪",
|
| 5 |
+
"Small habits, big results. Keep going. 🔁",
|
| 6 |
+
"Hydrate and move—your future self thanks you. 💧",
|
| 7 |
+
"Form first, weight second. You’ve got this. 🧠",
|
| 8 |
+
"Consistency beats intensity. Show up today. ✅",
|
| 9 |
+
]
|
| 10 |
+
def rotate_msg(i: int):
|
| 11 |
+
msg = MOTIVATION[i % len(MOTIVATION)]
|
| 12 |
+
return msg, i + 1
|
| 13 |
# -------------------------------
|
| 14 |
# Helpers: BMI / BMR / TDEE
|
| 15 |
# -------------------------------
|
|
|
|
| 82 |
"Maintain": ["Upper", "Lower", "Full Body", "HIIT/Cardio", "Mobility"],
|
| 83 |
"Build muscle": ["Push", "Pull", "Legs", "Upper", "Lower", "Mobility"]
|
| 84 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
def session_template(name: str, level: str, equipment: str) -> List[str]:
|
| 88 |
# بسيط ومفهوم للمبتدئ
|