smolagent / gr.py
batmac's picture
Upload folder using huggingface_hub
3e453e4 verified
raw
history blame contribute delete
278 Bytes
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()