Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent,
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
@@ -16,6 +16,7 @@ def my_custom_tool(team:str)-> str: #it's import to specify the return type
|
|
| 16 |
team: A string representing a valid basketball Team
|
| 17 |
"""
|
| 18 |
|
|
|
|
| 19 |
search = DuckDuckGoSearchRun()
|
| 20 |
message = f("What's the last result of the basketball team {team}?")
|
| 21 |
|
|
|
|
| 1 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool , HfApiModel,load_tool,tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
|
|
| 16 |
team: A string representing a valid basketball Team
|
| 17 |
"""
|
| 18 |
|
| 19 |
+
dRun = DuckDuckGoSearchTool()
|
| 20 |
search = DuckDuckGoSearchRun()
|
| 21 |
message = f("What's the last result of the basketball team {team}?")
|
| 22 |
|