Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def identify_dish(image_bytes):
|
|
| 31 |
|
| 32 |
return dish_name.strip()
|
| 33 |
except Exception as e:
|
| 34 |
-
return f"Error: {str(e)}"
|
| 35 |
|
| 36 |
# 2. Function to get user inputs and calculate daily caloric needs
|
| 37 |
def calculate_metrics(age, gender, height_cm, weight_kg, weight_goal, activity_level, time_frame_months):
|
|
|
|
| 31 |
|
| 32 |
return dish_name.strip()
|
| 33 |
except Exception as e:
|
| 34 |
+
return f"Error ==> Try uploading a different image. Sorry for the inconvenience caused : {str(e)}"
|
| 35 |
|
| 36 |
# 2. Function to get user inputs and calculate daily caloric needs
|
| 37 |
def calculate_metrics(age, gender, height_cm, weight_kg, weight_goal, activity_level, time_frame_months):
|