Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def remove_background(image):
|
4 |
-
#
|
5 |
-
# 예시로, 입력된 이미지를 그대로 반환하는 가상의 함수를 사용합니다.
|
6 |
-
# 실제로는 여기에 모델을 호출하는 코드가 들어갑니다.
|
7 |
return image
|
8 |
|
9 |
with gr.Blocks() as demo:
|
10 |
with gr.Row():
|
11 |
-
image_input = gr.Image(tool
|
12 |
image_output = gr.Image()
|
13 |
|
14 |
image_input.change(fn=remove_background, inputs=image_input, outputs=image_output)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def remove_background(image):
|
4 |
+
# 배경 제거 로직 구현
|
|
|
|
|
5 |
return image
|
6 |
|
7 |
with gr.Blocks() as demo:
|
8 |
with gr.Row():
|
9 |
+
image_input = gr.Image() # 'tool' 인자 제거
|
10 |
image_output = gr.Image()
|
11 |
|
12 |
image_input.change(fn=remove_background, inputs=image_input, outputs=image_output)
|