Santhosh1325 commited on
Commit
3c9307b
·
verified ·
1 Parent(s): f8df328

Update app.py

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