theekshana commited on
Commit
b0767aa
·
1 Parent(s): 346ef06

download_glb_btn

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -89,16 +89,17 @@ with gr.Blocks() as demo:
89
  outputs=[video_output]
90
  )
91
 
 
92
  download_glb_btn.click(
93
- fn=extract_glb,
94
- inputs=[0.95, 1024], # Example: default values for mesh_simplify and texture_size
95
- outputs=[glb_file]
96
  )
97
 
98
  download_gaussian_btn.click(
99
- fn=extract_gaussian,
100
- inputs=[],
101
- outputs=[gaussian_file]
102
  )
103
 
104
  # Launch Gradio App
 
89
  outputs=[video_output]
90
  )
91
 
92
+ # Download Buttons and Actions
93
  download_glb_btn.click(
94
+ fn=lambda: extract_glb(mesh_simplify=0.95, texture_size=1024), # Static values
95
+ inputs=[], # No dynamic inputs
96
+ outputs=[glb_file] # Output file for GLB
97
  )
98
 
99
  download_gaussian_btn.click(
100
+ fn=extract_gaussian, # Direct function call
101
+ inputs=[], # No dynamic inputs
102
+ outputs=[gaussian_file] # Output file for Gaussian
103
  )
104
 
105
  # Launch Gradio App