baskadir commited on
Commit
0367f71
·
verified ·
1 Parent(s): 24fb587

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def get_list_of_hotels(location: str, price: int) -> list:
53
  hotels = [{"title": r["title"], "url": r["href"], "snippet": r["body"]} for r in results]
54
  return hotels
55
  except Exception as e:
56
- return [{"error": f"Failed to fetch hotels": {srt(e)}}]
57
 
58
  final_answer = FinalAnswerTool()
59
 
 
53
  hotels = [{"title": r["title"], "url": r["href"], "snippet": r["body"]} for r in results]
54
  return hotels
55
  except Exception as e:
56
+ return [{"error": f"Failed to fetch hotels: {str(e)}"}]
57
 
58
  final_answer = FinalAnswerTool()
59