Spaces:
Sleeping
Sleeping
Winston de Jong commited on
Commit ·
344d72a
1
Parent(s): 9df5892
updated dlib compile
Browse files
app.py
CHANGED
|
@@ -8,13 +8,13 @@ import sys
|
|
| 8 |
import os
|
| 9 |
import platform
|
| 10 |
import time
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
os.system("pip install
|
| 14 |
-
|
| 15 |
-
|
| 16 |
import face_detection
|
| 17 |
-
print((time.time() -
|
| 18 |
|
| 19 |
# import spaces #[uncomment to use ZeroGPU]
|
| 20 |
from diffusers import DiffusionPipeline
|
|
|
|
| 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")
|
| 14 |
+
|
| 15 |
+
start_time = time.time()
|
| 16 |
import face_detection
|
| 17 |
+
print(f"took {(time.time() - start_time) / 60} minutes to load face_recognition")
|
| 18 |
|
| 19 |
# import spaces #[uncomment to use ZeroGPU]
|
| 20 |
from diffusers import DiffusionPipeline
|
dlib-19.24.99-cp36-cp36m-linux_x86_64.whl → dlib-19.24.99-cp310-cp310-linux_x86_64.whl
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b472f7b0eac0596435d64600e1008a6ce41e3b65f6754b5708ddcc37211ca909
|
| 3 |
+
size 3647600
|
dlib-linux_x86_64.whl
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f847496e124e9f3559a6d50c733587c45ff6988d1889cfc90f5be16675145427
|
| 3 |
-
size 4405328
|
|
|
|
|
|
|
|
|
|
|
|