dschandra commited on
Commit
f12397f
·
verified ·
1 Parent(s): af79f32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ logging.basicConfig(level=logging.INFO)
15
  # Initialize conversation state
16
  user_order = [] # Stores the current order
17
 
18
- # Define food items
19
  menu_items = {
20
  'Veg': ["Vegetable Biryani", "Paneer Butter Masala", "Aloo Gobi", "Veg Sambar", "Veg Korma"],
21
  'Non-Veg': ["Butter Chicken", "Chicken Biryani", "Tandoori Chicken", "Mutton Rogan Josh", "Chicken Korma"],
@@ -283,8 +283,8 @@ def process_command(command):
283
  if user_order:
284
  return f"You have the following items in your order: {', '.join(user_order)}. Would you like to confirm?"
285
  else:
286
- return "You haven't added anything to your order yet. Please add some items."
287
-
288
  # Final confirmation
289
  elif "yes" in command or "place order" in command:
290
  return "Your order has been confirmed and sent to the kitchen. Thank you for ordering!"
 
15
  # Initialize conversation state
16
  user_order = [] # Stores the current order
17
 
18
+ # Define food items (menu)
19
  menu_items = {
20
  'Veg': ["Vegetable Biryani", "Paneer Butter Masala", "Aloo Gobi", "Veg Sambar", "Veg Korma"],
21
  'Non-Veg': ["Butter Chicken", "Chicken Biryani", "Tandoori Chicken", "Mutton Rogan Josh", "Chicken Korma"],
 
283
  if user_order:
284
  return f"You have the following items in your order: {', '.join(user_order)}. Would you like to confirm?"
285
  else:
286
+ return "You haven't added anything to your order yet. Please add some items first."
287
+
288
  # Final confirmation
289
  elif "yes" in command or "place order" in command:
290
  return "Your order has been confirmed and sent to the kitchen. Thank you for ordering!"