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() | |