Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import pathlib
|
|
| 6 |
plt = platform.system()
|
| 7 |
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
| 8 |
|
| 9 |
-
learn_inf = load_learner("
|
| 10 |
new_label = {'face with mask': 'Student wearing mask', 'human face': 'Report! Student without mask detected'}
|
| 11 |
|
| 12 |
def predict_person(img):
|
|
|
|
| 6 |
plt = platform.system()
|
| 7 |
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
| 8 |
|
| 9 |
+
learn_inf = load_learner("mask_detection_model.pkl")
|
| 10 |
new_label = {'face with mask': 'Student wearing mask', 'human face': 'Report! Student without mask detected'}
|
| 11 |
|
| 12 |
def predict_person(img):
|