guardiancc commited on
Commit
edd8d5c
·
verified ·
1 Parent(s): 76846c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -329,7 +329,6 @@ with gr.Blocks() as demo:
329
  files_input = gr.File(file_count="multiple", visible=False)
330
  gallery_input = gr.Gallery(label="Slideshow", preview=True, columns=8192, interactive=False)
331
  with gr.Group():
332
- r_bg = gr.Checkbox(label="Remove background", value=True)
333
  with gr.Accordion(label="Max differences for background", open=False):
334
  mh = gr.Slider(minimum=0, maximum=180, step=1, value=180, label="Hue")
335
  ms = gr.Slider(minimum=0, maximum=255, step=1, value=255, label="Saturation")
@@ -338,7 +337,7 @@ with gr.Blocks() as demo:
338
  with gr.Tab("Border"):
339
  b_size = gr.Slider(minimum=1, maximum=255, step=2, value=3, label="Inner")
340
  d_size = gr.Slider(minimum=1, maximum=255, step=2, value=15, label="Outer")
341
- files_orig.upload(fn=loadf, inputs=[files_orig, r_bg, mh, ms, md, lm, b_size, d_size], outputs=[files_input, gallery_input])
342
 
343
  with gr.Row():
344
  interpolation_slider = gr.Slider(minimum=1, maximum=24, step=1, value=1, label="Interpolation Steps: ")
 
329
  files_input = gr.File(file_count="multiple", visible=False)
330
  gallery_input = gr.Gallery(label="Slideshow", preview=True, columns=8192, interactive=False)
331
  with gr.Group():
 
332
  with gr.Accordion(label="Max differences for background", open=False):
333
  mh = gr.Slider(minimum=0, maximum=180, step=1, value=180, label="Hue")
334
  ms = gr.Slider(minimum=0, maximum=255, step=1, value=255, label="Saturation")
 
337
  with gr.Tab("Border"):
338
  b_size = gr.Slider(minimum=1, maximum=255, step=2, value=3, label="Inner")
339
  d_size = gr.Slider(minimum=1, maximum=255, step=2, value=15, label="Outer")
340
+ files_orig.upload(fn=loadf, inputs=[files_orig, False, mh, ms, md, lm, b_size, d_size], outputs=[files_input, gallery_input])
341
 
342
  with gr.Row():
343
  interpolation_slider = gr.Slider(minimum=1, maximum=24, step=1, value=1, label="Interpolation Steps: ")