EUNSEO56 commited on
Commit
137cdbf
โ€ข
1 Parent(s): d96d7e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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='image', # ๋ณ€๊ฒฝ๋œ ์ถœ๋ ฅ ์œ ํ˜•
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()