Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,15 +6,12 @@ from smolagents import CodeAgent, DuckDuckGoSearchTool, LiteLLMModel
|
|
| 6 |
|
| 7 |
def create_agent():
|
| 8 |
model = LiteLLMModel(model_id="huggingface/Qwen/Qwen2.5-Coder-32B-Instruct")
|
| 9 |
-
|
| 10 |
search_tool = DuckDuckGoSearchTool()
|
| 11 |
-
|
| 12 |
agent = CodeAgent(
|
| 13 |
tools=[search_tool],
|
| 14 |
model=model,
|
| 15 |
additional_authorized_imports=["requests", "pandas", "numpy", "time", "re", "math"]
|
| 16 |
)
|
| 17 |
-
|
| 18 |
return agent
|
| 19 |
|
| 20 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
|
|
| 6 |
|
| 7 |
def create_agent():
|
| 8 |
model = LiteLLMModel(model_id="huggingface/Qwen/Qwen2.5-Coder-32B-Instruct")
|
|
|
|
| 9 |
search_tool = DuckDuckGoSearchTool()
|
|
|
|
| 10 |
agent = CodeAgent(
|
| 11 |
tools=[search_tool],
|
| 12 |
model=model,
|
| 13 |
additional_authorized_imports=["requests", "pandas", "numpy", "time", "re", "math"]
|
| 14 |
)
|
|
|
|
| 15 |
return agent
|
| 16 |
|
| 17 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|