Spaces:
Running
Running
Update app.py
Browse files
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
|
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)}"
|
|
|
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)}"
|