Ahsen Khaliq commited on
Commit
f81f892
1 Parent(s): f1df149

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(f"wget http://dlib.net/files/{model_file}")
60
- os.system(f"bzip2 -dk {model_file}")
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)