AashishKumar commited on
Commit
75d8cf0
·
1 Parent(s): b0c7c8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -166,14 +166,12 @@ def main(audio):
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= "Sorry, I didn't catch the restaurant name. Could you please repeat that?"
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: