SimpleSam commited on
Commit
ccb1fd3
·
verified ·
1 Parent(s): 8f5a86d

Update app.py

Browse files

added property search tool

Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -19,7 +19,9 @@ def property_search_tool(property_type:str, location:str, price:int)-> str: #it'
19
  """
20
  try:
21
  property_list = DuckDuckGoSearchTool.forward("{property_type} at {location}")
22
- return "What magic will you build ?"
 
 
23
 
24
  @tool
25
  def get_current_time_in_timezone(timezone: str) -> str:
 
19
  """
20
  try:
21
  property_list = DuckDuckGoSearchTool.forward("{property_type} at {location}")
22
+ return "What magic will you build ?"
23
+ except Exception as e:
24
+ return f"Error fetching property located at '{location}' at a price of '{property_type}' : {str(e)}}"
25
 
26
  @tool
27
  def get_current_time_in_timezone(timezone: str) -> str: