Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
|
| 2 |
import os
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
| 7 |
|
| 8 |
agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")
|
|
|
|
| 1 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
|
| 2 |
import os
|
| 3 |
|
| 4 |
+
model = HfApiModel(model_id="deepseek-ai/DeepSeek-R1", token=os.getenv('Testing')
|
| 5 |
+
)
|
| 6 |
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
|
| 7 |
|
| 8 |
agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")
|