Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
@@ -120,6 +120,7 @@ custom_role_conversions=None,
|
|
| 120 |
# Import tool from Hub
|
| 121 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 122 |
|
|
|
|
| 123 |
alfred_agent = agent.from_hub('sergiopaniego/AlfredAgent', trust_remote_code=True)
|
| 124 |
|
| 125 |
with open("prompts.yaml", 'r') as stream:
|
|
|
|
| 1 |
+
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool, InferenceClientModel
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
import pytz
|
|
|
|
| 120 |
# Import tool from Hub
|
| 121 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 122 |
|
| 123 |
+
agent = CodeAgent(tools=[], model=InferenceClientModel())
|
| 124 |
alfred_agent = agent.from_hub('sergiopaniego/AlfredAgent', trust_remote_code=True)
|
| 125 |
|
| 126 |
with open("prompts.yaml", 'r') as stream:
|