Fred808 commited on
Commit
e6cea55
·
verified ·
1 Parent(s): af14a63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -399,8 +399,8 @@ async def chatbot_response(request: Request, background_tasks: BackgroundTasks):
399
 
400
 
401
  # Handle dish selection for ordering
402
- if any(item["name"].lower() in user_message.lower() for item in menu_items) or \
403
- any(str(index) == user_message.strip() for index, item in enumerate(menu_items, start=1)): # Extract the selected dish
404
  selected_dish = None
405
  if user_message.strip().isdigit():
406
  # User selected by number
 
399
 
400
 
401
  # Handle dish selection for ordering
402
+ if any(item["name"].lower() in user_message.lower() for item in menu_items) or \
403
+ any(str(index) == user_message.strip() for index, item in enumerate(menu_items, start=1)):
404
  selected_dish = None
405
  if user_message.strip().isdigit():
406
  # User selected by number