Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,10 +71,15 @@ tool=[
|
|
| 71 |
load_tool("agents-course/text-to-image", trust_remote_code=True),
|
| 72 |
]
|
| 73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
# --- Agent setup ---
|
| 75 |
agent = CodeAgent(
|
| 76 |
tools=tool,
|
| 77 |
-
model=
|
| 78 |
add_base_tools=True,
|
| 79 |
name="MyAgent",
|
| 80 |
description="Agent with web search and time lookup tools"
|
|
|
|
| 71 |
load_tool("agents-course/text-to-image", trust_remote_code=True),
|
| 72 |
]
|
| 73 |
|
| 74 |
+
model = HfApiModel
|
| 75 |
+
model_id="Qwen/Qwen2.5-Coder-32B-Instruct"
|
| 76 |
+
max_tokens=2048,
|
| 77 |
+
temperature=0.5
|
| 78 |
+
)
|
| 79 |
# --- Agent setup ---
|
| 80 |
agent = CodeAgent(
|
| 81 |
tools=tool,
|
| 82 |
+
model= model,
|
| 83 |
add_base_tools=True,
|
| 84 |
name="MyAgent",
|
| 85 |
description="Agent with web search and time lookup tools"
|