hahangmi commited on
Commit
c1e846f
·
verified ·
1 Parent(s): 6a0b706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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="editor")
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)