Spaces:
Runtime error
Runtime error
Commit
·
45a75ac
1
Parent(s):
820c82c
Update app.py
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ def main(audio):
|
|
131 |
response = f"You ordered {food_item} from {best_restaurant}."
|
132 |
|
133 |
elif any(food in command for food in restaurants[restaurant_name]):
|
134 |
-
item = next((food for food in restaurants[restaurant_name] if food in command), None)
|
135 |
response = f"\nYou ordered {item} from {restaurant_name.title()}\nGreat! Thank you for ordering."
|
136 |
else :
|
137 |
menu_items = get_menu_items(restaurant_name)
|
|
|
131 |
response = f"You ordered {food_item} from {best_restaurant}."
|
132 |
|
133 |
elif any(food in command for food in restaurants[restaurant_name]):
|
134 |
+
item = next((food.title() for food in restaurants[restaurant_name] if food in command), None)
|
135 |
response = f"\nYou ordered {item} from {restaurant_name.title()}\nGreat! Thank you for ordering."
|
136 |
else :
|
137 |
menu_items = get_menu_items(restaurant_name)
|