DurgaDeepak commited on
Commit
01d2e68
·
verified ·
1 Parent(s): ac12d2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -30,7 +30,12 @@ def set_preferences(diet, goal, allergies):
30
  return "Preferences updated. You can start chatting now!"
31
 
32
  def chat_interface(user_input, history):
33
- return get_bot_response(user_input)
 
 
 
 
 
34
 
35
 
36
  with gr.Blocks(title="AI Meal Plan Assistant") as demo:
 
30
  return "Preferences updated. You can start chatting now!"
31
 
32
  def chat_interface(user_input, history):
33
+ try:
34
+ response = get_bot_response(user_input)
35
+ return response
36
+ except Exception as e:
37
+ return f"❌ Failed to process: {str(e)}"
38
+
39
 
40
 
41
  with gr.Blocks(title="AI Meal Plan Assistant") as demo: