Pijush2023 commited on
Commit
3a28b23
·
verified ·
1 Parent(s): 1ad3a53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -308,7 +308,7 @@ def generate_answer(message, choice, retrieval_mode):
308
  logging.debug(f"generate_answer called with choice: {choice} and retrieval_mode: {retrieval_mode}")
309
 
310
  # Check if the question is about hotels
311
- if "hotel" in message.lower() or if "hotels" in message.lower() and "birmingham" in message.lower():
312
  response = fetch_google_hotels()
313
  return response, extract_addresses(response)
314
 
 
308
  logging.debug(f"generate_answer called with choice: {choice} and retrieval_mode: {retrieval_mode}")
309
 
310
  # Check if the question is about hotels
311
+ if "hotel" in message.lower() or "hotels" in message.lower() and "birmingham" in message.lower():
312
  response = fetch_google_hotels()
313
  return response, extract_addresses(response)
314