Spaces:
Runtime error
Runtime error
modify
Browse files
app.py
CHANGED
@@ -233,11 +233,16 @@ def sepia(input_img):
|
|
233 |
fig = draw_plot(pred_img, seg)
|
234 |
return fig
|
235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
demo = gr.Interface(fn=sepia,
|
237 |
-
inputs=gr.Image(shape
|
238 |
outputs=['plot'],
|
239 |
examples=["image-1.jpg", "image-2.jpg", "image-3.jpg", "image-4.jpeg", "image-5.jpg"],
|
240 |
allow_flagging='never')
|
241 |
|
242 |
-
|
243 |
demo.launch()
|
|
|
233 |
fig = draw_plot(pred_img, seg)
|
234 |
return fig
|
235 |
|
236 |
+
# demo = gr.Interface(fn=sepia,
|
237 |
+
# inputs=gr.Image(shape=(400, 600)),
|
238 |
+
# outputs=['plot'],
|
239 |
+
# examples=["image-1.jpg", "image-2.jpg", "image-3.jpg", "image-4.jpeg", "image-5.jpg"],
|
240 |
+
# allow_flagging='never')
|
241 |
+
|
242 |
demo = gr.Interface(fn=sepia,
|
243 |
+
inputs=gr.Image().shape((400, 600)),
|
244 |
outputs=['plot'],
|
245 |
examples=["image-1.jpg", "image-2.jpg", "image-3.jpg", "image-4.jpeg", "image-5.jpg"],
|
246 |
allow_flagging='never')
|
247 |
|
|
|
248 |
demo.launch()
|