Spaces:
Runtime error
Runtime error
Commit
·
022f833
1
Parent(s):
6578146
update
Browse files
app.py
CHANGED
@@ -56,12 +56,10 @@ examples = [
|
|
56 |
['./images/ydt_2.jpg', './images/ydt_1.jpg', './images/ydt_3.jpg'],
|
57 |
]
|
58 |
|
59 |
-
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 |
-
|
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)",
|
@@ -73,7 +71,6 @@ demo_mask = gr.Interface(fn=inference_mask1,
|
|
73 |
</p>",
|
74 |
cache_examples=False,
|
75 |
allow_flagging="never",
|
76 |
-
css=css,
|
77 |
)
|
78 |
|
79 |
|
|
|
56 |
['./images/ydt_2.jpg', './images/ydt_1.jpg', './images/ydt_3.jpg'],
|
57 |
]
|
58 |
|
|
|
59 |
demo_mask = gr.Interface(fn=inference_mask1,
|
60 |
inputs=[gr.ImageMask(label="prompt (提示图)"), gr.Image(label="img1 (测试图1)"), gr.Image(label="img2 (测试图2)")],
|
61 |
#outputs=[gr.Image(shape=(448, 448), label="output1 (输出图1)"), gr.Image(shape=(448, 448), label="output2 (输出图2)")],
|
62 |
+
outputs=[gr.Image(label="output1 (输出图1)").style(height=384, width=384), gr.Image(label="output2 (输出图2)").style(height=384, width=384)],
|
|
|
63 |
#outputs=gr.Gallery(label="outputs (输出图)"),
|
64 |
examples=examples,
|
65 |
#title="SegGPT for Any Segmentation<br>(Painter Inside)",
|
|
|
71 |
</p>",
|
72 |
cache_examples=False,
|
73 |
allow_flagging="never",
|
|
|
74 |
)
|
75 |
|
76 |
|