Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def build():
|
|
99 |
out5 = gr.Image()
|
100 |
out6 = gr.Image()
|
101 |
with gr.Row():
|
102 |
-
btn3 = gr.Button("Download")
|
103 |
caixa = gr.File(file_count="multiple", file_types=["text", ".json", ".csv", "image"])
|
104 |
|
105 |
with gr.Row(visible=False):
|
@@ -122,11 +122,11 @@ def build():
|
|
122 |
b5=out3.change(im_fn,[prompt,noise_level,h_variavel],[out4,], show_progress=True)
|
123 |
b6=out4.change(im_fn,[prompt,noise_level,h_variavel],[out5,], show_progress=True)
|
124 |
b7=out5.change(im_fn,[prompt,noise_level,h_variavel],[out6,], show_progress=True)
|
125 |
-
b8=out6.change(noth,None,[message], show_progress=False)
|
126 |
swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5,b6,b7],show_progress=False)
|
127 |
#btn2.click(noth,None,message,cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|
128 |
btn2.click(clear_all, None,[fac_b,prompt,out1,out2,out3,out4,out5,out6,t_state,t_switch,message],cancels=[b1,sta,b2,b3,b4,b5,b6,b7,b8,swi],show_progress=False)
|
129 |
-
btn3.click(zip_files,None,[caixa],show_progress=False)
|
130 |
# caixa.change(noth,None,[message],show_progress=False)
|
131 |
b.queue(concurrency_count=100).launch(show_api=False)
|
132 |
build()
|
|
|
99 |
out5 = gr.Image()
|
100 |
out6 = gr.Image()
|
101 |
with gr.Row():
|
102 |
+
# btn3 = gr.Button("Download")
|
103 |
caixa = gr.File(file_count="multiple", file_types=["text", ".json", ".csv", "image"])
|
104 |
|
105 |
with gr.Row(visible=False):
|
|
|
122 |
b5=out3.change(im_fn,[prompt,noise_level,h_variavel],[out4,], show_progress=True)
|
123 |
b6=out4.change(im_fn,[prompt,noise_level,h_variavel],[out5,], show_progress=True)
|
124 |
b7=out5.change(im_fn,[prompt,noise_level,h_variavel],[out6,], show_progress=True)
|
125 |
+
b8=out6.change(noth,None,[message], show_progress=False).then(zip_files,None,[caixa])
|
126 |
swi=t_switch.change(clear,None,[t_switch,fac_b], cancels=[sta,b2,b3,b4,b5,b6,b7],show_progress=False)
|
127 |
#btn2.click(noth,None,message,cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|
128 |
btn2.click(clear_all, None,[fac_b,prompt,out1,out2,out3,out4,out5,out6,t_state,t_switch,message],cancels=[b1,sta,b2,b3,b4,b5,b6,b7,b8,swi],show_progress=False)
|
129 |
+
# btn3.click(zip_files,None,[caixa],show_progress=False)
|
130 |
# caixa.change(noth,None,[message],show_progress=False)
|
131 |
b.queue(concurrency_count=100).launch(show_api=False)
|
132 |
build()
|