Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,23 @@ from rembg import remove
|
|
4 |
title = "RBOI"
|
5 |
description = "This background remover tool is designed by Evgeniy Hristoforu!"
|
6 |
article = "<p style='text-align: center;'><a href='https://hf.co/openskyml' target='_blank'>🏠 Home page</a></p>"
|
7 |
-
|
8 |
def segment(image):
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
demo.queue(concurrency_count=3)
|
13 |
demo.launch()
|
|
|
4 |
title = "RBOI"
|
5 |
description = "This background remover tool is designed by Evgeniy Hristoforu!"
|
6 |
article = "<p style='text-align: center;'><a href='https://hf.co/openskyml' target='_blank'>🏠 Home page</a></p>"
|
7 |
+
|
8 |
def segment(image):
|
9 |
+
return remove(image)
|
10 |
+
|
11 |
+
# Die folgende Zeile scheint nicht benötigt zu werden und wurde entfernt
|
12 |
+
# with gr.Blocks(css="style.css", theme="NoCrypt/miku@1.2.1") as demo:
|
13 |
+
|
14 |
+
demo = gr.Interface(
|
15 |
+
fn=segment,
|
16 |
+
inputs="image",
|
17 |
+
outputs="image",
|
18 |
+
title=title,
|
19 |
+
description=description,
|
20 |
+
article=article,
|
21 |
+
css="style.css",
|
22 |
+
theme="NoCrypt/miku@1.2.1"
|
23 |
+
)
|
24 |
+
|
25 |
demo.queue(concurrency_count=3)
|
26 |
demo.launch()
|