Spaces:
Runtime error
Runtime error
Commit
·
52dc508
1
Parent(s):
d5a06f7
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ def main(audio):
|
|
| 143 |
|
| 144 |
elif found_rest and not found_item :
|
| 145 |
menu_items = get_menu_items(restaurant_name)
|
| 146 |
-
|
| 147 |
max_tries = 3
|
| 148 |
for i in range(max_tries):
|
| 149 |
order_audio = input()
|
|
@@ -169,7 +169,6 @@ def main(audio):
|
|
| 169 |
if found_rest:
|
| 170 |
menu_items = get_menu_items(restaurant_name)
|
| 171 |
response = f"Here's the menu for {restaurant_name}: {menu_items}"
|
| 172 |
-
break
|
| 173 |
else:
|
| 174 |
response = chatbot(command)
|
| 175 |
elif identify_food_command(command) == 'food':
|
|
|
|
| 143 |
|
| 144 |
elif found_rest and not found_item :
|
| 145 |
menu_items = get_menu_items(restaurant_name)
|
| 146 |
+
response = f"Sure, here's the menu for {restaurant_name}: {menu_items} What would you like to order?"
|
| 147 |
max_tries = 3
|
| 148 |
for i in range(max_tries):
|
| 149 |
order_audio = input()
|
|
|
|
| 169 |
if found_rest:
|
| 170 |
menu_items = get_menu_items(restaurant_name)
|
| 171 |
response = f"Here's the menu for {restaurant_name}: {menu_items}"
|
|
|
|
| 172 |
else:
|
| 173 |
response = chatbot(command)
|
| 174 |
elif identify_food_command(command) == 'food':
|