AashishKumar commited on
Commit
9a79088
·
1 Parent(s): 3ed9c34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -128,11 +128,14 @@ def main(audio):
128
 
129
  print(found_item , found_rest)
130
  if food_command in ['order', 'eat' , 'want' , 'serve' , 'prepare' ]:
 
131
  if not found_rest and found_item:
 
132
  temp_val = {}
133
  for restaurant, rest_info in restaurants.items():
134
  if item_name in rest_info:
135
  temp_val[restaurant] = int(rest_info[item_name])
 
136
  if temp_val:
137
  min_price = min(temp_val.values())
138
  res = [key for key in temp_val if temp_val[key] == min_price]
 
128
 
129
  print(found_item , found_rest)
130
  if food_command in ['order', 'eat' , 'want' , 'serve' , 'prepare' ]:
131
+ print("entered 1")
132
  if not found_rest and found_item:
133
+ print("entered 2")
134
  temp_val = {}
135
  for restaurant, rest_info in restaurants.items():
136
  if item_name in rest_info:
137
  temp_val[restaurant] = int(rest_info[item_name])
138
+ print(temp_val)
139
  if temp_val:
140
  min_price = min(temp_val.values())
141
  res = [key for key in temp_val if temp_val[key] == min_price]