Stubbs0x commited on
Commit
60c2497
·
verified ·
1 Parent(s): 0154003

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- Mesh Generation Result
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