xinlongwang commited on
Commit
6578146
·
1 Parent(s): bded866
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -60,7 +60,8 @@ css = ".output-image, .input-image, .image-preview {height: 300px !important}"
60
  demo_mask = gr.Interface(fn=inference_mask1,
61
  inputs=[gr.ImageMask(label="prompt (提示图)"), gr.Image(label="img1 (测试图1)"), gr.Image(label="img2 (测试图2)")],
62
  #outputs=[gr.Image(shape=(448, 448), label="output1 (输出图1)"), gr.Image(shape=(448, 448), label="output2 (输出图2)")],
63
- outputs=[gr.Image(label="output1 (输出图1)").style(height=400, width=400), gr.Image(label="output2 (输出图2)").style(height=400, width=400)],
 
64
  #outputs=gr.Gallery(label="outputs (输出图)"),
65
  examples=examples,
66
  #title="SegGPT for Any Segmentation<br>(Painter Inside)",
 
60
  demo_mask = gr.Interface(fn=inference_mask1,
61
  inputs=[gr.ImageMask(label="prompt (提示图)"), gr.Image(label="img1 (测试图1)"), gr.Image(label="img2 (测试图2)")],
62
  #outputs=[gr.Image(shape=(448, 448), label="output1 (输出图1)"), gr.Image(shape=(448, 448), label="output2 (输出图2)")],
63
+ #outputs=[gr.Image(label="output1 (输出图1)").style(height=400, width=400), gr.Image(label="output2 (输出图2)").style(height=400, width=400)],
64
+ outputs=[gr.Image(label="output1 (输出图1)"), gr.Image(label="output2 (输出图2)")],
65
  #outputs=gr.Gallery(label="outputs (输出图)"),
66
  examples=examples,
67
  #title="SegGPT for Any Segmentation<br>(Painter Inside)",