tori29umai commited on
Commit
ac47311
·
1 Parent(s): cb13df9
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -218,16 +218,19 @@ class webui:
218
  self.demo.add(gamma, gamma_description)
219
  self.demo.add(submit)
220
 
221
- with gr.Column():
222
- output_image = gr.Image(label="Processed Image")
223
-
 
 
224
  submit.click(
225
  self.main,
226
- inputs=[input_image, kernel_size, sigma, k_sigma, epsilon, phi, gamma],
227
- outputs=[output_image]
228
  )
229
 
230
- self.demo.launch(share=share)
 
231
 
232
  if __name__ == "__main__":
233
  ui = webui()
 
218
  self.demo.add(gamma, gamma_description)
219
  self.demo.add(submit)
220
 
221
+ with gr.Row():
222
+ with gr.Column():
223
+ with gr.Tab("output"):
224
+ output_0 = gr.Gallery(format="png")
225
+ output_file = gr.File()
226
  submit.click(
227
  self.main,
228
+ inputs=[input_image],
229
+ outputs=[output_0, output_file]
230
  )
231
 
232
+ self.demo.queue()
233
+ self.demo.launch(share=share)
234
 
235
  if __name__ == "__main__":
236
  ui = webui()