Spaces:
Running
on
T4
Running
on
T4
Upload gradio_app.py
Browse files- gradio_app.py +3 -7
gradio_app.py
CHANGED
@@ -360,18 +360,14 @@ def shape_generation(
|
|
360 |
|
361 |
path = export_mesh(mesh, save_folder, textured=False)
|
362 |
print(path)
|
363 |
-
|
364 |
-
print(
|
365 |
-
print(stats)
|
366 |
-
|
367 |
-
gr_update = gr.update(value=path)
|
368 |
-
print(gr_update)
|
369 |
|
370 |
model_viewer_html = build_model_viewer_html(save_folder, path, height=HTML_HEIGHT, width=HTML_WIDTH)
|
371 |
if args.low_vram_mode:
|
372 |
torch.cuda.empty_cache()
|
373 |
return (
|
374 |
-
|
375 |
model_viewer_html,
|
376 |
stats,
|
377 |
seed,
|
|
|
360 |
|
361 |
path = export_mesh(mesh, save_folder, textured=False)
|
362 |
print(path)
|
363 |
+
filepath=gr.File(path)
|
364 |
+
print(filepath)
|
|
|
|
|
|
|
|
|
365 |
|
366 |
model_viewer_html = build_model_viewer_html(save_folder, path, height=HTML_HEIGHT, width=HTML_WIDTH)
|
367 |
if args.low_vram_mode:
|
368 |
torch.cuda.empty_cache()
|
369 |
return (
|
370 |
+
gr.update(value=path),
|
371 |
model_viewer_html,
|
372 |
stats,
|
373 |
seed,
|