Subbu1304 commited on
Commit
9847f61
·
verified ·
1 Parent(s): d1dc439

Update app.py

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