File size: 376 Bytes
458410b
 
 
c1e846f
458410b
 
 
 
c1e846f
458410b
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def remove_background(image):
    # 배경 제거 로직 구현
    return image

with gr.Blocks() as demo:
    with gr.Row():
        image_input = gr.Image()  # 'tool' 인자 제거
        image_output = gr.Image()
    
    image_input.change(fn=remove_background, inputs=image_input, outputs=image_output)

if __name__ == "__main__":
    demo.launch()