Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
15 |
-
|
16 |
-
with gr.
|
17 |
-
gr.
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
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)
|