Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,13 +36,15 @@ custom_role_conversions=None,
|
|
36 |
|
37 |
# Import tool from Hub
|
38 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
|
|
39 |
|
40 |
with open("prompts.yaml", 'r') as stream:
|
41 |
prompt_templates = yaml.safe_load(stream)
|
42 |
|
43 |
agent = CodeAgent(
|
44 |
model=model,
|
45 |
-
tools=[get_current_time_in_timezone, final_answer], ## add your tools here (don't remove final answer)
|
46 |
max_steps=6,
|
47 |
verbosity_level=1,
|
48 |
grammar=None,
|
|
|
36 |
|
37 |
# Import tool from Hub
|
38 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
39 |
+
3d_generation_tool = load_tool("tencent/Hunyuan3D-1", trust_remote_code=True)
|
40 |
+
|
41 |
|
42 |
with open("prompts.yaml", 'r') as stream:
|
43 |
prompt_templates = yaml.safe_load(stream)
|
44 |
|
45 |
agent = CodeAgent(
|
46 |
model=model,
|
47 |
+
tools=[get_current_time_in_timezone, 3d_generation_tool, final_answer], ## add your tools here (don't remove final answer)
|
48 |
max_steps=6,
|
49 |
verbosity_level=1,
|
50 |
grammar=None,
|