Spaces:
Running
on
L40S
Running
on
L40S
convert obj to glb
Browse fileslighting baked in with glb
app.py
CHANGED
@@ -44,7 +44,7 @@ def handle_text_prompt(input_prompt):
|
|
44 |
# save output
|
45 |
vertices, faces = mesh_v_f[0][0], mesh_v_f[0][1]
|
46 |
save_folder = gen_save_folder()
|
47 |
-
output_path = os.path.join(save_folder, "output.
|
48 |
trimesh.Trimesh(vertices=vertices, faces=faces).export(output_path)
|
49 |
return output_path
|
50 |
|
|
|
44 |
# save output
|
45 |
vertices, faces = mesh_v_f[0][0], mesh_v_f[0][1]
|
46 |
save_folder = gen_save_folder()
|
47 |
+
output_path = os.path.join(save_folder, "output.glb")
|
48 |
trimesh.Trimesh(vertices=vertices, faces=faces).export(output_path)
|
49 |
return output_path
|
50 |
|