PUM4CH3N commited on
Commit
b892c30
·
1 Parent(s): 8527388
Files changed (1) hide show
  1. app.py +22 -22
app.py CHANGED
@@ -214,7 +214,7 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
214
 
215
  with gr.Column():
216
  video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
217
- # model_output = LitModel3D(label="Extracted GLB/Gaussian", exposure=10.0, height=300)
218
 
219
  with gr.Row():
220
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
@@ -244,28 +244,28 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
244
  outputs=[extract_glb_btn, extract_gs_btn],
245
  )
246
 
247
- # extract_glb_btn.click(
248
- # extract_glb,
249
- # inputs=[output_buf, mesh_simplify, texture_size],
250
- # outputs=[model_output, download_glb],
251
- # ).then(
252
- # lambda: gr.Button(interactive=True),
253
- # outputs=[download_glb],
254
- # )
255
 
256
- # extract_gs_btn.click(
257
- # extract_gaussian,
258
- # inputs=[output_buf],
259
- # outputs=[model_output, download_gs],
260
- # ).then(
261
- # lambda: gr.Button(interactive=True),
262
- # outputs=[download_gs],
263
- # )
264
-
265
- # model_output.clear(
266
- # lambda: gr.Button(interactive=False),
267
- # outputs=[download_glb],
268
- # )
269
 
270
 
271
  # Launch the Gradio app
 
214
 
215
  with gr.Column():
216
  video_output = gr.Video(label="Generated 3D Asset", autoplay=True, loop=True, height=300)
217
+ model_output = LitModel3D(label="Extracted GLB/Gaussian", exposure=10.0, height=300)
218
 
219
  with gr.Row():
220
  download_glb = gr.DownloadButton(label="Download GLB", interactive=False)
 
244
  outputs=[extract_glb_btn, extract_gs_btn],
245
  )
246
 
247
+ extract_glb_btn.click(
248
+ extract_glb,
249
+ inputs=[output_buf, mesh_simplify, texture_size],
250
+ outputs=[model_output, download_glb],
251
+ ).then(
252
+ lambda: gr.Button(interactive=True),
253
+ outputs=[download_glb],
254
+ )
255
 
256
+ extract_gs_btn.click(
257
+ extract_gaussian,
258
+ inputs=[output_buf],
259
+ outputs=[model_output, download_gs],
260
+ ).then(
261
+ lambda: gr.Button(interactive=True),
262
+ outputs=[download_gs],
263
+ )
264
+
265
+ model_output.clear(
266
+ lambda: gr.Button(interactive=False),
267
+ outputs=[download_glb],
268
+ )
269
 
270
 
271
  # Launch the Gradio app