Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,6 +41,7 @@ max_tokens=2096,
|
|
| 41 |
temperature=0.5,
|
| 42 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 43 |
custom_role_conversions=None,
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
# Import tool from Hub
|
|
@@ -51,7 +52,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 51 |
|
| 52 |
agent = CodeAgent(
|
| 53 |
model=model,
|
| 54 |
-
tools=[my_cutom_tool, get_current_time_in_timezone, final_answer,
|
| 55 |
max_steps=6,
|
| 56 |
verbosity_level=1,
|
| 57 |
grammar=None,
|
|
|
|
| 41 |
temperature=0.5,
|
| 42 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
|
| 43 |
custom_role_conversions=None,
|
| 44 |
+
token=os.getenv('HF_TOKEN'),
|
| 45 |
)
|
| 46 |
|
| 47 |
# Import tool from Hub
|
|
|
|
| 52 |
|
| 53 |
agent = CodeAgent(
|
| 54 |
model=model,
|
| 55 |
+
tools=[my_cutom_tool, get_current_time_in_timezone, final_answer, image_generation_tool], ## add your tools here (don't remove final answer)
|
| 56 |
max_steps=6,
|
| 57 |
verbosity_level=1,
|
| 58 |
grammar=None,
|