Winston de Jong commited on
Commit
badde22
·
1 Parent(s): 344d72a

It worked!!

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -8,6 +8,10 @@ import sys
8
  import os
9
  import platform
10
  import time
 
 
 
 
11
  if(platform.system() == 'Linux'):
12
  os.system("pip install ./dlib-19.24.99-cp310-cp310-linux_x86_64.whl")
13
  os.system("pip install face-recognition")
 
8
  import os
9
  import platform
10
  import time
11
+
12
+ # by default, dlib will be compiled locally when installed via pip, which takes so long it
13
+ # causes huggingface to time out during the build process.
14
+ # To avoid this, check if we are running on a Linux system, and if so load a binary of dlib compiled for x86_64 Linux
15
  if(platform.system() == 'Linux'):
16
  os.system("pip install ./dlib-19.24.99-cp310-cp310-linux_x86_64.whl")
17
  os.system("pip install face-recognition")