Spaces:
Running
on
L4
Running
on
L4
Update gradio_im_to_3d.py
#16
by
Zojikk
- opened
- gradio_im_to_3d.py +1 -1
gradio_im_to_3d.py
CHANGED
|
@@ -46,7 +46,7 @@ def get_mesh(model, image, keep_edges=False):
|
|
| 46 |
mesh = trimesh.Trimesh(vertices=verts, faces=triangles, vertex_colors=colors)
|
| 47 |
|
| 48 |
# Save as glb
|
| 49 |
-
glb_file = tempfile.NamedTemporaryFile(suffix='.
|
| 50 |
glb_path = glb_file.name
|
| 51 |
mesh.export(glb_path)
|
| 52 |
return glb_path
|
|
|
|
| 46 |
mesh = trimesh.Trimesh(vertices=verts, faces=triangles, vertex_colors=colors)
|
| 47 |
|
| 48 |
# Save as glb
|
| 49 |
+
glb_file = tempfile.NamedTemporaryFile(suffix='.obj', delete=False)
|
| 50 |
glb_path = glb_file.name
|
| 51 |
mesh.export(glb_path)
|
| 52 |
return glb_path
|