jayashree commited on
Commit
b0e4102
·
verified ·
1 Parent(s): 8ba39f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,14 +34,14 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
- def DuckDuckGoSearchTool(country:str,zipcode:int)-> str:
38
  """A tool that fetches the closest hospital for the given country & zipcode
39
  Args:
40
  country:A string representing the name of the country(e.g India)
41
  zipcode: A valid zip code of the country
42
  """
43
  try:
44
- DuckDuckGoSearchTool(country,zipcode)
45
 
46
  except Exception as e:
47
  return f"Error fetching hospital name for country & zipcode '{country}','{zipcode}': {str(e)}"
 
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
+ def search(country:str,zipcode:int)-> str:
38
  """A tool that fetches the closest hospital for the given country & zipcode
39
  Args:
40
  country:A string representing the name of the country(e.g India)
41
  zipcode: A valid zip code of the country
42
  """
43
  try:
44
+ DuckDuckGoSearchTool()
45
 
46
  except Exception as e:
47
  return f"Error fetching hospital name for country & zipcode '{country}','{zipcode}': {str(e)}"