Spaces:
Runtime error
Runtime error
Delete app (1).py
Browse files- app (1).py +0 -17
app (1).py
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
from rembg import remove
|
3 |
-
|
4 |
-
title = "Remove Background"
|
5 |
-
description = """
|
6 |
-
In this space, you can quickly remove background from images.
|
7 |
-
|
8 |
-
⚠️ Make sure your image is of good quality and has a clear background!
|
9 |
-
|
10 |
-
⚠️ Sometimes the background is not removed correctly, this is normal, because this is just a demo version!
|
11 |
-
"""
|
12 |
-
|
13 |
-
def segment(image):
|
14 |
-
return remove(image)
|
15 |
-
|
16 |
-
demo = gr.Interface(fn=segment, inputs = gr.Image(label="Input Image", interactive=True), outputs = gr.Image(label="Result Image"), title=title, description=description)
|
17 |
-
demo.launch(show_api=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|