Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ def process_message(message, history):
|
|
| 65 |
if "yes" in message.lower() or "yeah" in message.lower():
|
| 66 |
chat_state.step = "category"
|
| 67 |
return "Great! Please select your preferred category: Vegetarian, Non-Vegetarian."
|
| 68 |
-
return "
|
| 69 |
|
| 70 |
elif chat_state.step == "category":
|
| 71 |
chat_state.category = message.lower()
|
|
@@ -75,7 +75,7 @@ def process_message(message, history):
|
|
| 75 |
return f"Great! What main ingredient would you like? Available options: {', '.join(VEG_INGREDIENTS)}"
|
| 76 |
elif "non-vegetarian" in message.lower():
|
| 77 |
return f"Great! What type of meat would you prefer? Available options: {', '.join(NONVEG_TYPES)}"
|
| 78 |
-
return "Please
|
| 79 |
|
| 80 |
elif chat_state.step == "ingredient":
|
| 81 |
chat_state.ingredient = message.lower()
|
|
@@ -96,7 +96,7 @@ def process_message(message, history):
|
|
| 96 |
return response
|
| 97 |
except KeyError:
|
| 98 |
chat_state.step = "initial" # Reset for new conversation
|
| 99 |
-
return f"
|
| 100 |
|
| 101 |
return "I'm not sure how to help with that. Would you like to start over?"
|
| 102 |
|
|
|
|
| 65 |
if "yes" in message.lower() or "yeah" in message.lower():
|
| 66 |
chat_state.step = "category"
|
| 67 |
return "Great! Please select your preferred category: Vegetarian, Non-Vegetarian."
|
| 68 |
+
return "Let's get started! Do you want to proceed with meal customization? (Yes/No)"
|
| 69 |
|
| 70 |
elif chat_state.step == "category":
|
| 71 |
chat_state.category = message.lower()
|
|
|
|
| 75 |
return f"Great! What main ingredient would you like? Available options: {', '.join(VEG_INGREDIENTS)}"
|
| 76 |
elif "non-vegetarian" in message.lower():
|
| 77 |
return f"Great! What type of meat would you prefer? Available options: {', '.join(NONVEG_TYPES)}"
|
| 78 |
+
return "Please choose either Vegetarian or Non-Vegetarian"
|
| 79 |
|
| 80 |
elif chat_state.step == "ingredient":
|
| 81 |
chat_state.ingredient = message.lower()
|
|
|
|
| 96 |
return response
|
| 97 |
except KeyError:
|
| 98 |
chat_state.step = "initial" # Reset for new conversation
|
| 99 |
+
return f"Oops! No dishes found for this combination 😅. Let's try again!"
|
| 100 |
|
| 101 |
return "I'm not sure how to help with that. Would you like to start over?"
|
| 102 |
|