Spaces:
Runtime error
Runtime error
Commit
·
75d8cf0
1
Parent(s):
b0c7c8c
Update app.py
Browse files
app.py
CHANGED
|
@@ -166,14 +166,12 @@ def main(audio):
|
|
| 166 |
|
| 167 |
|
| 168 |
elif food_command in ['menu' , 'menus' , 'catalogue' , 'items' , 'something']:
|
| 169 |
-
|
| 170 |
menu_items = get_menu_items(restaurant_name)
|
| 171 |
response = f"Here's the menu for {restaurant}: {menu_items}"
|
| 172 |
break
|
| 173 |
-
|
| 174 |
-
response=
|
| 175 |
-
else:
|
| 176 |
-
response = chatbot(command)
|
| 177 |
elif identify_food_command(command) == 'food':
|
| 178 |
response=chatbot("Respond a person properly who has come to your restaurant asking food")
|
| 179 |
else:
|
|
|
|
| 166 |
|
| 167 |
|
| 168 |
elif food_command in ['menu' , 'menus' , 'catalogue' , 'items' , 'something']:
|
| 169 |
+
if found_rest:
|
| 170 |
menu_items = get_menu_items(restaurant_name)
|
| 171 |
response = f"Here's the menu for {restaurant}: {menu_items}"
|
| 172 |
break
|
| 173 |
+
else:
|
| 174 |
+
response = chatbot(command)
|
|
|
|
|
|
|
| 175 |
elif identify_food_command(command) == 'food':
|
| 176 |
response=chatbot("Respond a person properly who has come to your restaurant asking food")
|
| 177 |
else:
|