File size: 278 Bytes
3e453e4
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from smolagents import GradioUI, CodeAgent, DuckDuckGoSearchTool, HfApiModel

# model = HfApiModel()
model = HfApiModel(
    model_id="deepseek-ai/DeepSeek-R1",
    provider="together",
)
agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)


GradioUI(agent).launch()