Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,12 +23,7 @@ def get_capital_city_of_country(country:str)-> str: #it's import to specify the
|
|
| 23 |
if not search_results:
|
| 24 |
return "Sorry, no results found."
|
| 25 |
|
| 26 |
-
|
| 27 |
-
# Extract the relevant information (e.g., first result's title, snippet, or URL)
|
| 28 |
-
first_result = search_results[0]
|
| 29 |
-
capital_city = first_result["snippet"] # Or use first_result["title"] if more appropriate
|
| 30 |
-
|
| 31 |
-
return f"The capital city of {country} is likely {capital_city}. You can read more at {first_result['url']}"
|
| 32 |
|
| 33 |
@tool
|
| 34 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 23 |
if not search_results:
|
| 24 |
return "Sorry, no results found."
|
| 25 |
|
| 26 |
+
return f"The capital city of {country} is likely {search_results}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
@tool
|
| 29 |
def get_current_time_in_timezone(timezone: str) -> str:
|