Update app.py
Browse files
app.py
CHANGED
@@ -17,13 +17,23 @@ demo = gr.Interface(
|
|
17 |
shape=(224, 224),
|
18 |
label="Input Image",
|
19 |
value="./sample/bird_plane.jpeg",
|
20 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
],
|
22 |
outputs=[
|
23 |
gr.Image(),
|
24 |
],
|
25 |
-
examples=[
|
|
|
|
|
|
|
26 |
)
|
27 |
|
28 |
|
29 |
-
demo.launch()
|
|
|
17 |
shape=(224, 224),
|
18 |
label="Input Image",
|
19 |
value="./sample/bird_plane.jpeg",
|
20 |
+
),
|
21 |
+
gr.Slider(
|
22 |
+
minimum=0,
|
23 |
+
maximum=1,
|
24 |
+
value=0.5,
|
25 |
+
label="Mask Transparency",
|
26 |
+
info="Mask transparency for image segmentation overlay",
|
27 |
+
),
|
28 |
],
|
29 |
outputs=[
|
30 |
gr.Image(),
|
31 |
],
|
32 |
+
examples=[
|
33 |
+
[os.path.join("./sample/", f)]
|
34 |
+
for f in os.listdir("./sample/")
|
35 |
+
],
|
36 |
)
|
37 |
|
38 |
|
39 |
+
demo.launch()
|