jesusvilela commited on
Commit
7eecc06
·
verified ·
1 Parent(s): c53d7cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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