DD0101 commited on
Commit
47f1d49
·
verified ·
1 Parent(s): c8ba8ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -53,8 +53,11 @@ def face_mask_detection(image):
53
  title = "Face-Masked Detection"
54
  description = "This is an easy-to-use demo for detecting faces inside an image and then decide if they are wearing mask or not. MTCNN will be used for face-detection and EfficientNetB0 will be used for masked-classification."
55
 
56
- gr.Interface(fn=face_mask_detection,
57
  inputs=gr.Image(shape=(224, 224)),
58
  outputs=gr.outputs.Image(type = "pil", label = "Output Image"),
59
  title=title,
60
- description=description).launch()
 
 
 
 
53
  title = "Face-Masked Detection"
54
  description = "This is an easy-to-use demo for detecting faces inside an image and then decide if they are wearing mask or not. MTCNN will be used for face-detection and EfficientNetB0 will be used for masked-classification."
55
 
56
+ demo = gr.Interface(fn=face_mask_detection,
57
  inputs=gr.Image(shape=(224, 224)),
58
  outputs=gr.outputs.Image(type = "pil", label = "Output Image"),
59
  title=title,
60
+ description=description)
61
+
62
+ if __name__ == "__main__":
63
+ demo.queue(max_size=10).launch()