Spaces:
Sleeping
Sleeping
Update app.py
Browse filesHfapi m9del adjustment
app.py
CHANGED
|
@@ -107,6 +107,8 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
|
|
| 107 |
custom_role_conversions=None,
|
| 108 |
)
|
| 109 |
|
|
|
|
|
|
|
| 110 |
|
| 111 |
# Import tool from Hub
|
| 112 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
@@ -120,9 +122,9 @@ agent = CodeAgent(
|
|
| 120 |
max_steps=6,
|
| 121 |
verbosity_level=1,
|
| 122 |
grammar=None,
|
| 123 |
-
planning_interval=None,
|
| 124 |
add_base_tools=True, # Add any additional base tools
|
| 125 |
-
|
| 126 |
name=None,
|
| 127 |
description="This agent searches for the answer to the given prompt, iterates to find the best final answer to return as a text variable. For example: 'what color is grass?, final_answer='green'''.",
|
| 128 |
# prompt_templates=prompt_templates
|
|
|
|
| 107 |
custom_role_conversions=None,
|
| 108 |
)
|
| 109 |
|
| 110 |
+
model = InferenceClientModel(model_id="Qwen/Qwen2.5-72B-Instruct")
|
| 111 |
+
|
| 112 |
|
| 113 |
# Import tool from Hub
|
| 114 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
|
| 122 |
max_steps=6,
|
| 123 |
verbosity_level=1,
|
| 124 |
grammar=None,
|
| 125 |
+
#planning_interval=None,
|
| 126 |
add_base_tools=True, # Add any additional base tools
|
| 127 |
+
planning_interval=3, # Enable planning every 3 steps
|
| 128 |
name=None,
|
| 129 |
description="This agent searches for the answer to the given prompt, iterates to find the best final answer to return as a text variable. For example: 'what color is grass?, final_answer='green'''.",
|
| 130 |
# prompt_templates=prompt_templates
|