Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,10 +54,10 @@ def segmentation(input_image):
|
|
54 |
i = gr.inputs.Image()
|
55 |
o = [gr.outputs.Image('pil'), gr.outputs.Image('pil')]
|
56 |
|
57 |
-
examples = [["example_image_2.jpeg"], ["example_image_3.jpeg"]]
|
58 |
title = "Human Part Segmentation"
|
59 |
description = "Upload an image or select from examples to segment out different human parts."
|
60 |
|
61 |
-
article = "<div style='text-align: center;'><a href='https://
|
62 |
gr.Interface(segmentation, i, o, examples=examples, allow_flagging=False, analytics_enabled=False,
|
63 |
title=title, description=description, article=article).launch(enable_queue=True)
|
|
|
54 |
i = gr.inputs.Image()
|
55 |
o = [gr.outputs.Image('pil'), gr.outputs.Image('pil')]
|
56 |
|
57 |
+
examples = [["example_image_2.jpeg"], ["example_image_2.jpg"], ["example_image_3.jpeg"]]
|
58 |
title = "Human Part Segmentation"
|
59 |
description = "Upload an image or select from examples to segment out different human parts."
|
60 |
|
61 |
+
article = "<div style='text-align: center;'><a href='https://keras.io/examples/vision/deeplabv3_plus/' target='_blank'>Keras example by Praveen Kaushik</a></div>"
|
62 |
gr.Interface(segmentation, i, o, examples=examples, allow_flagging=False, analytics_enabled=False,
|
63 |
title=title, description=description, article=article).launch(enable_queue=True)
|