Spaces:
Running
on
T4
Running
on
T4
Ahsen Khaliq
commited on
Commit
•
f81f892
1
Parent(s):
f1df149
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,8 @@ def get_dlib_face_detector(predictor_path: str = "shape_predictor_68_face_landma
|
|
56 |
|
57 |
if not os.path.isfile(predictor_path):
|
58 |
model_file = "shape_predictor_68_face_landmarks.dat.bz2"
|
59 |
-
os.system(
|
60 |
-
os.system(
|
61 |
|
62 |
detector = dlib.get_frontal_face_detector()
|
63 |
shape_predictor = dlib.shape_predictor(predictor_path)
|
|
|
56 |
|
57 |
if not os.path.isfile(predictor_path):
|
58 |
model_file = "shape_predictor_68_face_landmarks.dat.bz2"
|
59 |
+
os.system("wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2")
|
60 |
+
os.system("bzip2 -dk shape_predictor_68_face_landmarks.dat.bz2")
|
61 |
|
62 |
detector = dlib.get_frontal_face_detector()
|
63 |
shape_predictor = dlib.shape_predictor(predictor_path)
|