Spaces:
Runtime error
Runtime error
TenPoisk
commited on
Commit
·
28d3595
1
Parent(s):
d69c4f2
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from rembg import remove
|
| 3 |
+
|
| 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 |
+
demo = gr.Interface(fn=segment, inputs="image", outputs="image", title=title, description=description, article=article)
|
| 12 |
+
demo.queue(concurrency_count=1)
|
| 13 |
+
demo.launch()
|