Spaces:
Sleeping
Sleeping
Update app.py
#3
by
porosanx - opened
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
@tool
|
| 23 |
-
def get_weather_tool(latitude:float, longitude:float)-> pd.
|
| 24 |
"""
|
| 25 |
A tool to get weather
|
| 26 |
"""
|
|
@@ -82,7 +82,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 82 |
|
| 83 |
|
| 84 |
final_answer = FinalAnswerTool()
|
| 85 |
-
web_search = DuckDuckGoSearchTool(
|
| 86 |
|
| 87 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
| 88 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
|
|
|
| 20 |
return "What magic will you build ?"
|
| 21 |
|
| 22 |
@tool
|
| 23 |
+
def get_weather_tool(latitude:float, longitude:float)-> pd.DataFrame:
|
| 24 |
"""
|
| 25 |
A tool to get weather
|
| 26 |
"""
|
|
|
|
| 82 |
|
| 83 |
|
| 84 |
final_answer = FinalAnswerTool()
|
| 85 |
+
web_search = DuckDuckGoSearchTool()
|
| 86 |
|
| 87 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
| 88 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|