Delete app.py
Browse files
app.py
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
import gradio as gr
|
| 3 |
-
from u2net_utils import remove_background
|
| 4 |
-
|
| 5 |
-
def process(image):
|
| 6 |
-
return remove_background(image)
|
| 7 |
-
|
| 8 |
-
demo = gr.Interface(
|
| 9 |
-
fn=process,
|
| 10 |
-
inputs=gr.Image(type="pil", label="Upload image"),
|
| 11 |
-
outputs=gr.Image(type="pil", label="Output"),
|
| 12 |
-
title="Remove Background",
|
| 13 |
-
description="Upload an image and remove the background using U²-Net.",
|
| 14 |
-
allow_flagging="never"
|
| 15 |
-
)
|
| 16 |
-
|
| 17 |
-
if __name__ == "__main__":
|
| 18 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|