Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -230,12 +230,13 @@ final_answer = FinalAnswerTool()
|
|
| 230 |
model = InferenceClientModel(
|
| 231 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 232 |
temperature=0.5,
|
| 233 |
-
|
| 234 |
)
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
|
|
|
| 239 |
# Load tool from hub
|
| 240 |
# image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 241 |
|
|
|
|
| 230 |
model = InferenceClientModel(
|
| 231 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 232 |
temperature=0.5,
|
| 233 |
+
max_output_tokens=2048 # optional, safe alternative
|
| 234 |
)
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
+
|
| 240 |
# Load tool from hub
|
| 241 |
# image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 242 |
|