Spaces:
Running
Running
| # 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() | |