Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from rembg import remove
|
3 |
+
|
4 |
+
def remove_background(image):
|
5 |
+
output_image = remove(image)
|
6 |
+
return output_image
|
7 |
+
|
8 |
+
iface = gr.Interface(
|
9 |
+
fn=remove_background,
|
10 |
+
inputs=gr.inputs.Image(type="pil"),
|
11 |
+
outputs=gr.outputs.Image(type="pil"),
|
12 |
+
title="배경 제거 도구",
|
13 |
+
description="이 도구를 사용하여 이미지에서 배경을 제거하세요."
|
14 |
+
)
|
15 |
+
|
16 |
+
if __name__ == "__main__":
|
17 |
+
iface.launch()
|