brandonongsc commited on
Commit
2cc5dcf
1 Parent(s): c17390f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -82,3 +82,14 @@ gr.Interface(fn=predict,
82
  outputs=gr.Image(type="pil"),
83
  title="Detect Individual Wearing Mask/No Mask"
84
  ).launch(share=True)
 
 
 
 
 
 
 
 
 
 
 
 
82
  outputs=gr.Image(type="pil"),
83
  title="Detect Individual Wearing Mask/No Mask"
84
  ).launch(share=True)
85
+
86
+
87
+ # List of sample image paths
88
+ sample_images = [
89
+ "MaskNoMask_test1.png",
90
+ "MaskNoMask_test2.png",
91
+ # Add more sample image paths as needed
92
+ ]
93
+
94
+ # Create an Image component preloaded with sample images
95
+ image_component = gr.inputs.Image(label="Upload your image", type="file", source=sample_images)