debugging
Browse files
app.py
CHANGED
|
@@ -232,33 +232,33 @@ with gr.Blocks() as demo:
|
|
| 232 |
)
|
| 233 |
|
| 234 |
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
|
| 263 |
|
| 264 |
# Cleans up the temporary directory every 10 minutes
|
|
|
|
| 232 |
)
|
| 233 |
|
| 234 |
|
| 235 |
+
generate_btn.click(
|
| 236 |
+
image_to_3d,
|
| 237 |
+
inputs=[trial_id, seed, randomize_seed, ss_guidance_strength, ss_sampling_steps, slat_guidance_strength, slat_sampling_steps],
|
| 238 |
+
outputs=[output_buf, video_output],
|
| 239 |
+
).then(
|
| 240 |
+
activate_button,
|
| 241 |
+
outputs=[extract_glb_btn],
|
| 242 |
+
)
|
| 243 |
+
|
| 244 |
+
video_output.clear(
|
| 245 |
+
deactivate_button,
|
| 246 |
+
outputs=[extract_glb_btn],
|
| 247 |
+
)
|
| 248 |
+
|
| 249 |
+
extract_glb_btn.click(
|
| 250 |
+
extract_glb,
|
| 251 |
+
inputs=[output_buf, mesh_simplify, texture_size],
|
| 252 |
+
outputs=[model_output, download_glb],
|
| 253 |
+
).then(
|
| 254 |
+
activate_button,
|
| 255 |
+
outputs=[download_glb],
|
| 256 |
+
)
|
| 257 |
+
|
| 258 |
+
model_output.clear(
|
| 259 |
+
deactivate_button,
|
| 260 |
+
outputs=[download_glb],
|
| 261 |
+
)
|
| 262 |
|
| 263 |
|
| 264 |
# Cleans up the temporary directory every 10 minutes
|