Spaces:
Runtime error
Runtime error
Update gradio_app/gradio_3dgen.py
Browse files
gradio_app/gradio_3dgen.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
# gradio_app/gradio_3dgen.py
|
| 2 |
-
|
| 3 |
import spaces
|
| 4 |
import os
|
| 5 |
import gradio as gr
|
|
@@ -55,7 +53,7 @@ def generate3dv2(preview_img, input_processing, seed, render_video=True, do_refi
|
|
| 55 |
new_meshes = Meshes(verts=[vertices], faces=new_meshes.faces_list(), textures=new_meshes.textures)
|
| 56 |
|
| 57 |
logging.info(f"[{job_id}] Guardando GLB y video en {output_dir}...")
|
| 58 |
-
ret_mesh, video = save_glb_and_video(output_dir, new_meshes, with_timestamp=False, dist=3.5, fov_in_degrees=2 / 1.35, cam_type="ortho", export_video=render_video
|
| 59 |
|
| 60 |
logging.info(f"[{job_id}] Generaci贸n completada. Archivos resultantes: {ret_mesh}, {video}")
|
| 61 |
return ret_mesh, video
|
|
|
|
|
|
|
|
|
|
| 1 |
import spaces
|
| 2 |
import os
|
| 3 |
import gradio as gr
|
|
|
|
| 53 |
new_meshes = Meshes(verts=[vertices], faces=new_meshes.faces_list(), textures=new_meshes.textures)
|
| 54 |
|
| 55 |
logging.info(f"[{job_id}] Guardando GLB y video en {output_dir}...")
|
| 56 |
+
ret_mesh, video = save_glb_and_video(output_dir, new_meshes, with_timestamp=False, dist=3.5, fov_in_degrees=2 / 1.35, cam_type="ortho", export_video=render_video)
|
| 57 |
|
| 58 |
logging.info(f"[{job_id}] Generaci贸n completada. Archivos resultantes: {ret_mesh}, {video}")
|
| 59 |
return ret_mesh, video
|