dawn17 commited on
Commit
fb11cf7
1 Parent(s): c131670

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
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=[[os.path.join("./sample/", f)] for f in os.listdir("./sample/")],
 
 
 
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()