Omnibus commited on
Commit
5d2cb5f
·
verified ·
1 Parent(s): f8d7fe9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -167,9 +167,10 @@ def load_im(img):
167
  im1 = im.crop((left, top, right, bottom))
168
  im_box.append(im1)
169
  w+=new_w
170
- yield im_box
171
  h+=new_h
172
  w=0
 
173
  with gr.Blocks(css=css) as app:
174
  with gr.Row():
175
  with gr.Column():
@@ -186,8 +187,8 @@ with gr.Blocks(css=css) as app:
186
  out_html=gr.HTML()
187
  outp=gr.Gallery(columns=10)
188
  fingal=gr.Gallery(columns=10)
189
-
190
- im_btn.click(load_im,inp_im,outp)
191
- go_btn = btn.click(run_dif,[inp,outp,model_drop,cnt],[fingal,out_html])
192
  stop_btn.click(None,None,None,cancels=[go_btn])
193
  app.queue().launch()
 
167
  im1 = im.crop((left, top, right, bottom))
168
  im_box.append(im1)
169
  w+=new_w
170
+ yield im_box,[]
171
  h+=new_h
172
  w=0
173
+ yield im_box,im_box
174
  with gr.Blocks(css=css) as app:
175
  with gr.Row():
176
  with gr.Column():
 
187
  out_html=gr.HTML()
188
  outp=gr.Gallery(columns=10)
189
  fingal=gr.Gallery(columns=10)
190
+ im_list=gr.Textbox()
191
+ im_btn.click(load_im,inp_im,[outp,im_list])
192
+ go_btn = btn.click(run_dif,[inp,im_list,model_drop,cnt],[fingal,out_html])
193
  stop_btn.click(None,None,None,cancels=[go_btn])
194
  app.queue().launch()