Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def collect_data(fasting_duration, meal_timing, body_weight, age, gender, height
|
|
| 34 |
|
| 35 |
return df
|
| 36 |
|
| 37 |
-
|
| 38 |
def generate_recommendations(health_score, fasting_duration, meal_timing, body_weight, age, gender, height):
|
| 39 |
# Generate recommendations based on the health score
|
| 40 |
message = ""
|
|
@@ -52,7 +52,7 @@ def generate_recommendations(health_score, fasting_duration, meal_timing, body_w
|
|
| 52 |
repeat_penalty=1.0, repeat_last_n=64, n_batch=16, streaming=False)
|
| 53 |
return recommendations.strip()
|
| 54 |
|
| 55 |
-
|
| 56 |
def predict_metabolic_health(fasting_duration, meal_timing, body_weight, age, gender, height):
|
| 57 |
try:
|
| 58 |
# Check if meal_timing is an empty string or has an invalid format
|
|
|
|
| 34 |
|
| 35 |
return df
|
| 36 |
|
| 37 |
+
@spaces.GPU
|
| 38 |
def generate_recommendations(health_score, fasting_duration, meal_timing, body_weight, age, gender, height):
|
| 39 |
# Generate recommendations based on the health score
|
| 40 |
message = ""
|
|
|
|
| 52 |
repeat_penalty=1.0, repeat_last_n=64, n_batch=16, streaming=False)
|
| 53 |
return recommendations.strip()
|
| 54 |
|
| 55 |
+
@spaces.GPU
|
| 56 |
def predict_metabolic_health(fasting_duration, meal_timing, body_weight, age, gender, height):
|
| 57 |
try:
|
| 58 |
# Check if meal_timing is an empty string or has an invalid format
|