Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|
|
|
|
|
|
|
|
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()
|