vobecant
commited on
Commit
•
486389f
1
Parent(s):
9528953
Initial commit.
Browse files
app.py
CHANGED
@@ -225,15 +225,15 @@ examples += ['examples/cs{}.jpg'.format(i) for i in range(2, 5)]
|
|
225 |
|
226 |
# predict(examples[0])
|
227 |
|
228 |
-
iface = gr.Interface(predict, inputs=gr.
|
229 |
article=article,
|
230 |
# theme='dark',
|
231 |
-
outputs=[gr.
|
232 |
-
gr.
|
233 |
examples=examples)
|
234 |
# iface = gr.Interface(predict, gr.inputs.Image(type='filepath'),
|
235 |
# "image", title=title, description=description,
|
236 |
# examples=examples)
|
237 |
|
238 |
# iface.launch(show_error=True, share=True)
|
239 |
-
iface.launch(enable_queue=True, inline=True)
|
|
|
225 |
|
226 |
# predict(examples[0])
|
227 |
|
228 |
+
iface = gr.Interface(predict, inputs=gr.Image(type='filepath'), title=title, description=description,
|
229 |
article=article,
|
230 |
# theme='dark',
|
231 |
+
outputs=[gr.Image(label="Pseudo segmentation", type="pil"),
|
232 |
+
gr.Image(label="Mapping to Cityscapes", type="pil")],
|
233 |
examples=examples)
|
234 |
# iface = gr.Interface(predict, gr.inputs.Image(type='filepath'),
|
235 |
# "image", title=title, description=description,
|
236 |
# examples=examples)
|
237 |
|
238 |
# iface.launch(show_error=True, share=True)
|
239 |
+
iface.launch(enable_queue=True, inline=True) # , cache_examples=CACHE)
|