jpuri's picture
Updating code
5348153
raw
history blame contribute delete
332 Bytes
# Create a CodeAgent with DuckDuckGo search capability
from smolagents import CodeAgent, DuckDuckGoSearchTool, GradioUI, InferenceClientModel
agent = CodeAgent(
tools=[DuckDuckGoSearchTool()],
model=InferenceClientModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
)
if __name__ == "__main__":
GradioUI(agent).launch()