Update app.py
Browse files
app.py
CHANGED
@@ -119,15 +119,13 @@ def sepia(input_img):
|
|
119 |
pred_img = pred_img.astype(np.uint8)
|
120 |
|
121 |
fig = draw_plot(pred_img, seg)
|
122 |
-
|
123 |
-
# ์์ ๋ ๋ถ๋ถ: LabeledImage ์์ ฏ ์ฌ์ฉ
|
124 |
-
labeled_image = gr.LabeledImage(image=pred_img, label=labels_list)
|
125 |
-
return labeled_image
|
126 |
|
127 |
demo = gr.Interface(fn=sepia,
|
128 |
inputs=gr.Image(shape=(400, 600)),
|
129 |
-
outputs='
|
130 |
examples=["side-1.jpg", "side-2.jpg", "side-3.jpg", "side-4.jpg", "side-5.jpg", "side-6.jpg"],
|
131 |
allow_flagging='never')
|
132 |
|
|
|
133 |
demo.launch()
|
|
|
119 |
pred_img = pred_img.astype(np.uint8)
|
120 |
|
121 |
fig = draw_plot(pred_img, seg)
|
122 |
+
return fig
|
|
|
|
|
|
|
123 |
|
124 |
demo = gr.Interface(fn=sepia,
|
125 |
inputs=gr.Image(shape=(400, 600)),
|
126 |
+
outputs=['plot'],
|
127 |
examples=["side-1.jpg", "side-2.jpg", "side-3.jpg", "side-4.jpg", "side-5.jpg", "side-6.jpg"],
|
128 |
allow_flagging='never')
|
129 |
|
130 |
+
|
131 |
demo.launch()
|