Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,8 @@ def my_custom_tool(country:str, indicator:str)->str: #it's import to specify the
|
|
| 17 |
statistic: the value of the statistic requested as a string
|
| 18 |
"""
|
| 19 |
search = DuckDuckGoSearchRun()
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
@tool
|
| 23 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 17 |
statistic: the value of the statistic requested as a string
|
| 18 |
"""
|
| 19 |
search = DuckDuckGoSearchRun()
|
| 20 |
+
indicator_val = search.invoke(f"What is the {indicator} of {country}")
|
| 21 |
+
return f"The {indicator} of {country} is :"{str(indicator_val)}
|
| 22 |
|
| 23 |
@tool
|
| 24 |
def get_current_time_in_timezone(timezone: str) -> str:
|