Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,6 @@ model_id='https://wxknx1kg971u7k1n.us-east-1.aws.endpoints.huggingface.cloud',#
|
|
| 42 |
custom_role_conversions=None,
|
| 43 |
)
|
| 44 |
|
| 45 |
-
time_zone_tool = get_current_time_in_timezone('Moscow')
|
| 46 |
|
| 47 |
# Import tool from Hub
|
| 48 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
@@ -52,7 +51,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 52 |
|
| 53 |
agent = CodeAgent(
|
| 54 |
model=model,
|
| 55 |
-
tools=[final_answer, image_generation_tool
|
| 56 |
max_steps=6,
|
| 57 |
verbosity_level=1,
|
| 58 |
grammar=None,
|
|
|
|
| 42 |
custom_role_conversions=None,
|
| 43 |
)
|
| 44 |
|
|
|
|
| 45 |
|
| 46 |
# Import tool from Hub
|
| 47 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
|
| 51 |
|
| 52 |
agent = CodeAgent(
|
| 53 |
model=model,
|
| 54 |
+
tools=[final_answer, image_generation_tool], ## add your tools here (don't remove final answer)
|
| 55 |
max_steps=6,
|
| 56 |
verbosity_level=1,
|
| 57 |
grammar=None,
|