Omnibus commited on
Commit
23021cb
1 Parent(s): 4d0d246

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -11,17 +11,18 @@ def rem_bg(input):
11
 
12
  with gr.Blocks() as myface:
13
  gr.Markdown("""<center><h1>Fast Background Remover</h1><center>""")
14
- gr.Column()
15
- with gr.Column():
16
- with gr.Accordion("Details",open=False):
17
- gr.Markdown("""<center><h3>Drop your image in the box, and the background will be removed.</h3><center><br>""")
18
- gr.Markdown("""<center><h5>Background Removal by:<a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo: danielgatis/rembg</h3></a><center>""")
19
- gr.Markdown("""<center><h5>Huggingface Space by: <a href='https://twitter.com/omnibusai' target='_blank'>Omnibus</h3></a><center>""")
20
-
21
- with gr.Accordion(label="Input Image",open=True) as og:
22
- in_win=gr.Pil(label="Input", interactive=True, batch=True, max_batch_size=20)
23
- out_win=gr.Pil(label="Output")
24
- gr.Column()
 
25
 
26
  in_win.change(rem_bg,in_win,[out_win,og])
27
  myface.queue(concurrency_count=120)
 
11
 
12
  with gr.Blocks() as myface:
13
  gr.Markdown("""<center><h1>Fast Background Remover</h1><center>""")
14
+ with gr.Row():
15
+ gr.Column()
16
+ with gr.Column():
17
+ with gr.Accordion("Details",open=False):
18
+ gr.Markdown("""<center><h3>Drop your image in the box, and the background will be removed.</h3><center><br>""")
19
+ gr.Markdown("""<center><h5>Background Removal by:<a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo: danielgatis/rembg<br>
20
+ Huggingface Space by: <a href='https://twitter.com/omnibusai' target='_blank'>Omnibus</h3></a><center>""")
21
+
22
+ with gr.Accordion(label="Input Image",open=True) as og:
23
+ in_win=gr.Pil(label="Input", interactive=True, batch=True, max_batch_size=20)
24
+ out_win=gr.Pil(label="Output")
25
+ gr.Column()
26
 
27
  in_win.change(rem_bg,in_win,[out_win,og])
28
  myface.queue(concurrency_count=120)