Update index.py
Browse files
index.py
CHANGED
@@ -45,9 +45,9 @@ model.loadcheckpoints(model_path)
|
|
45 |
def handler(input_image):
|
46 |
# 处理输入图片
|
47 |
mask, foreground = model.inference(input_image)
|
48 |
-
|
49 |
return [mask, foreground]
|
50 |
|
|
|
51 |
# 创建 Gradio 界面
|
52 |
def create_interface():
|
53 |
with gr.Blocks() as demo:
|
|
|
45 |
def handler(input_image):
|
46 |
# 处理输入图片
|
47 |
mask, foreground = model.inference(input_image)
|
|
|
48 |
return [mask, foreground]
|
49 |
|
50 |
+
|
51 |
# 创建 Gradio 界面
|
52 |
def create_interface():
|
53 |
with gr.Blocks() as demo:
|