JiantaoLin
commited on
Commit
·
c69e083
1
Parent(s):
ded6c2a
debug btn_download1
Browse files
app.py
CHANGED
@@ -109,6 +109,7 @@ preprocessed_input_image = None
|
|
109 |
|
110 |
def save_cached_mesh():
|
111 |
global mesh_cache
|
|
|
112 |
return mesh_cache
|
113 |
# if mesh_cache is None:
|
114 |
# return None
|
@@ -457,6 +458,7 @@ with gr.Blocks(css="""
|
|
457 |
btn_img2mesh_main.click(fn=image2mesh_main_, inputs=[output_image2, image_caption, seed2, strength1, strength2, enable_redux, use_controlnet], outputs=[output_image3, output_video2])
|
458 |
|
459 |
|
|
|
460 |
btn_download2.click(fn=save_cached_mesh, inputs=[], outputs=file_output2)
|
461 |
|
462 |
|
|
|
109 |
|
110 |
def save_cached_mesh():
|
111 |
global mesh_cache
|
112 |
+
print('save_cached_mesh() called')
|
113 |
return mesh_cache
|
114 |
# if mesh_cache is None:
|
115 |
# return None
|
|
|
458 |
btn_img2mesh_main.click(fn=image2mesh_main_, inputs=[output_image2, image_caption, seed2, strength1, strength2, enable_redux, use_controlnet], outputs=[output_image3, output_video2])
|
459 |
|
460 |
|
461 |
+
btn_download1.click(fn=save_cached_mesh, inputs=[], outputs=file_output1)
|
462 |
btn_download2.click(fn=save_cached_mesh, inputs=[], outputs=file_output2)
|
463 |
|
464 |
|