experimentation / app.py
rahulnamdev's picture
Update app.py
6df506c verified
raw
history blame
309 Bytes
from smolagents import CodeAgent, DuckDuckGoSearchTool, HfApiModel
import os
model = HfApiModel(model_id="deepseek-ai/DeepSeek-R1", token="")
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)
agent.run("How many seconds would it take for a leopard at full speed to run through Pont des Arts?")