Commit
·
18972e6
1
Parent(s):
54fa437
Update app.py
Browse files
app.py
CHANGED
@@ -17,15 +17,16 @@ def query(inputs):
|
|
17 |
|
18 |
|
19 |
inputs = gr.inputs.Image(type="pil", label="Upload an image")
|
|
|
20 |
# outputs = gr.outputs.HTML() #uncomment for single class output
|
21 |
#outputs = query(inputs)
|
22 |
|
23 |
title = "<h1 style='text-align: center;'>Image Segmentation</h1>"
|
24 |
description = "Upload an image and get the segmentation result."
|
25 |
|
26 |
-
gr.Interface(fn=
|
27 |
inputs=inputs,
|
28 |
-
outputs=
|
29 |
title=title,
|
30 |
examples=[["00_plane.jpg"], ["01_car.jpg"], ["02_bird.jpg"], ["03_cat.jpg"], ["04_deer.jpg"]],
|
31 |
description=description,
|
|
|
17 |
|
18 |
|
19 |
inputs = gr.inputs.Image(type="pil", label="Upload an image")
|
20 |
+
outputs = gr.outputs.HTML()
|
21 |
# outputs = gr.outputs.HTML() #uncomment for single class output
|
22 |
#outputs = query(inputs)
|
23 |
|
24 |
title = "<h1 style='text-align: center;'>Image Segmentation</h1>"
|
25 |
description = "Upload an image and get the segmentation result."
|
26 |
|
27 |
+
gr.Interface(fn=query,
|
28 |
inputs=inputs,
|
29 |
+
outputs=outputs,
|
30 |
title=title,
|
31 |
examples=[["00_plane.jpg"], ["01_car.jpg"], ["02_bird.jpg"], ["03_cat.jpg"], ["04_deer.jpg"]],
|
32 |
description=description,
|