Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,6 +94,9 @@ def process_message(message, history):
|
|
| 94 |
category = "nonveg" if "non" in chat_state.category else "veg"
|
| 95 |
ingredient = chat_state.ingredient
|
| 96 |
|
|
|
|
|
|
|
|
|
|
| 97 |
# Check if the ingredient exists in the database for the selected category
|
| 98 |
if ingredient not in FOOD_DATABASE[category]:
|
| 99 |
chat_state.step = "initial" # Reset for new conversation
|
|
|
|
| 94 |
category = "nonveg" if "non" in chat_state.category else "veg"
|
| 95 |
ingredient = chat_state.ingredient
|
| 96 |
|
| 97 |
+
# Debugging: Print the state before fetching food items
|
| 98 |
+
print(f"Category: {category}, Ingredient: {ingredient}, Nutrition: {nutrition}")
|
| 99 |
+
|
| 100 |
# Check if the ingredient exists in the database for the selected category
|
| 101 |
if ingredient not in FOOD_DATABASE[category]:
|
| 102 |
chat_state.step = "initial" # Reset for new conversation
|