Pijush2023 commited on
Commit
4443c31
·
verified ·
1 Parent(s): f261cfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -410,7 +410,7 @@ def clean_response(response_text):
410
  def generate_answer(message, choice, retrieval_mode, selected_model):
411
  logging.debug(f"generate_answer called with choice: {choice} and retrieval_mode: {retrieval_mode}")
412
 
413
- try {
414
  if "hotel" in message.lower() or "hotels" in message.lower() and "birmingham" in message.lower():
415
  response = fetch_google_hotels()
416
  return response, extract_addresses(response)
@@ -468,10 +468,10 @@ def generate_answer(message, choice, retrieval_mode, selected_model):
468
  else:
469
  return "Invalid retrieval mode selected.", []
470
 
471
- } catch (Exception e) {
472
  logging.error(f"Error in generate_answer: {e}")
473
  return "Sorry, I encountered an error while processing your request.", []
474
- }
475
 
476
 
477
 
 
410
  def generate_answer(message, choice, retrieval_mode, selected_model):
411
  logging.debug(f"generate_answer called with choice: {choice} and retrieval_mode: {retrieval_mode}")
412
 
413
+ try:
414
  if "hotel" in message.lower() or "hotels" in message.lower() and "birmingham" in message.lower():
415
  response = fetch_google_hotels()
416
  return response, extract_addresses(response)
 
468
  else:
469
  return "Invalid retrieval mode selected.", []
470
 
471
+ except Exception as e:
472
  logging.error(f"Error in generate_answer: {e}")
473
  return "Sorry, I encountered an error while processing your request.", []
474
+
475
 
476
 
477