Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def image_to_3d(image_path:str)-> dict: #it's import to specify the return type
|
|
| 33 |
print(result)
|
| 34 |
|
| 35 |
return f"""
|
| 36 |
-
|
| 37 |
|
| 38 |
Copy these exact fields into the final answer. Do not invent URLs. Do not omit any field.
|
| 39 |
|
|
@@ -87,7 +87,11 @@ agent = CodeAgent(
|
|
| 87 |
final_answer,
|
| 88 |
image_to_3d
|
| 89 |
], ## add your tools here (don't remove final answer)
|
|
|
|
| 90 |
max_steps=6,
|
|
|
|
|
|
|
|
|
|
| 91 |
# prompt_templates=prompt_templates
|
| 92 |
)
|
| 93 |
|
|
|
|
| 33 |
print(result)
|
| 34 |
|
| 35 |
return f"""
|
| 36 |
+
MESH_GENERATION_RESULT
|
| 37 |
|
| 38 |
Copy these exact fields into the final answer. Do not invent URLs. Do not omit any field.
|
| 39 |
|
|
|
|
| 87 |
final_answer,
|
| 88 |
image_to_3d
|
| 89 |
], ## add your tools here (don't remove final answer)
|
| 90 |
+
additional_authorized_imports=["json"],
|
| 91 |
max_steps=6,
|
| 92 |
+
instructions="""
|
| 93 |
+
When the image_to_3d tool returns MESH_GENERATION_RESULT, your final answer must copy the html_preview, file_export, glb_path, and obj_path fields exactly. Do not say that a URL exists unless the tool returned that exact URL.
|
| 94 |
+
"""
|
| 95 |
# prompt_templates=prompt_templates
|
| 96 |
)
|
| 97 |
|