Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
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:
|