Update
Browse files- .gitattributes +1 -0
- README.md +1 -1
- app.py +5 -0
- pyproject.toml +9 -2
- requirements.txt +7 -5
- uv.lock +0 -0
- wheels/dlib-20.0.0-cp310-cp310-linux_x86_64.whl +3 -0
.gitattributes
CHANGED
|
@@ -25,3 +25,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.whl filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🦀
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 5.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 5.39.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
app.py
CHANGED
|
@@ -2,6 +2,11 @@
|
|
| 2 |
|
| 3 |
import os
|
| 4 |
import pathlib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
import cv2
|
| 7 |
import dlib
|
|
|
|
| 2 |
|
| 3 |
import os
|
| 4 |
import pathlib
|
| 5 |
+
import shlex
|
| 6 |
+
import subprocess
|
| 7 |
+
|
| 8 |
+
if os.getenv("SPACE_ID"):
|
| 9 |
+
subprocess.run(shlex.split("pip install wheels/dlib-19.24.0-cp310-cp310-linux_x86_64.whl"), check=True) # noqa: S603
|
| 10 |
|
| 11 |
import cv2
|
| 12 |
import dlib
|
pyproject.toml
CHANGED
|
@@ -5,8 +5,7 @@ description = ""
|
|
| 5 |
readme = "README.md"
|
| 6 |
requires-python = ">=3.10"
|
| 7 |
dependencies = [
|
| 8 |
-
"
|
| 9 |
-
"gradio>=5.20.0",
|
| 10 |
"hf-transfer>=0.1.9",
|
| 11 |
"opencv-python-headless>=4.11.0.86",
|
| 12 |
"pretrainedmodels>=0.7.4",
|
|
@@ -55,3 +54,11 @@ convention = "google"
|
|
| 55 |
|
| 56 |
[tool.ruff.format]
|
| 57 |
docstring-code-format = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
readme = "README.md"
|
| 6 |
requires-python = ">=3.10"
|
| 7 |
dependencies = [
|
| 8 |
+
"gradio>=5.39.0",
|
|
|
|
| 9 |
"hf-transfer>=0.1.9",
|
| 10 |
"opencv-python-headless>=4.11.0.86",
|
| 11 |
"pretrainedmodels>=0.7.4",
|
|
|
|
| 54 |
|
| 55 |
[tool.ruff.format]
|
| 56 |
docstring-code-format = true
|
| 57 |
+
|
| 58 |
+
[tool.uv.sources]
|
| 59 |
+
dlib = { path = "wheels/dlib-20.0.0-cp310-cp310-linux_x86_64.whl" }
|
| 60 |
+
|
| 61 |
+
[dependency-groups]
|
| 62 |
+
dev = [
|
| 63 |
+
"dlib",
|
| 64 |
+
]
|
requirements.txt
CHANGED
|
@@ -9,6 +9,8 @@ anyio==4.8.0
|
|
| 9 |
# gradio
|
| 10 |
# httpx
|
| 11 |
# starlette
|
|
|
|
|
|
|
| 12 |
certifi==2025.1.31
|
| 13 |
# via
|
| 14 |
# httpcore
|
|
@@ -20,8 +22,6 @@ click==8.1.8
|
|
| 20 |
# via
|
| 21 |
# typer
|
| 22 |
# uvicorn
|
| 23 |
-
dlib==19.24.6
|
| 24 |
-
# via age-estimation-appa-real (pyproject.toml)
|
| 25 |
exceptiongroup==1.2.2
|
| 26 |
# via anyio
|
| 27 |
fastapi==0.115.11
|
|
@@ -38,9 +38,9 @@ fsspec==2025.2.0
|
|
| 38 |
# gradio-client
|
| 39 |
# huggingface-hub
|
| 40 |
# torch
|
| 41 |
-
gradio==5.
|
| 42 |
# via age-estimation-appa-real (pyproject.toml)
|
| 43 |
-
gradio-client==1.
|
| 44 |
# via gradio
|
| 45 |
groovy==0.1.2
|
| 46 |
# via gradio
|
|
@@ -50,6 +50,8 @@ h11==0.14.0
|
|
| 50 |
# uvicorn
|
| 51 |
hf-transfer==0.1.9
|
| 52 |
# via age-estimation-appa-real (pyproject.toml)
|
|
|
|
|
|
|
| 53 |
httpcore==1.0.7
|
| 54 |
# via httpx
|
| 55 |
httpx==0.28.1
|
|
@@ -57,7 +59,7 @@ httpx==0.28.1
|
|
| 57 |
# gradio
|
| 58 |
# gradio-client
|
| 59 |
# safehttpx
|
| 60 |
-
huggingface-hub==0.
|
| 61 |
# via
|
| 62 |
# gradio
|
| 63 |
# gradio-client
|
|
|
|
| 9 |
# gradio
|
| 10 |
# httpx
|
| 11 |
# starlette
|
| 12 |
+
brotli==1.1.0
|
| 13 |
+
# via gradio
|
| 14 |
certifi==2025.1.31
|
| 15 |
# via
|
| 16 |
# httpcore
|
|
|
|
| 22 |
# via
|
| 23 |
# typer
|
| 24 |
# uvicorn
|
|
|
|
|
|
|
| 25 |
exceptiongroup==1.2.2
|
| 26 |
# via anyio
|
| 27 |
fastapi==0.115.11
|
|
|
|
| 38 |
# gradio-client
|
| 39 |
# huggingface-hub
|
| 40 |
# torch
|
| 41 |
+
gradio==5.39.0
|
| 42 |
# via age-estimation-appa-real (pyproject.toml)
|
| 43 |
+
gradio-client==1.11.0
|
| 44 |
# via gradio
|
| 45 |
groovy==0.1.2
|
| 46 |
# via gradio
|
|
|
|
| 50 |
# uvicorn
|
| 51 |
hf-transfer==0.1.9
|
| 52 |
# via age-estimation-appa-real (pyproject.toml)
|
| 53 |
+
hf-xet==1.1.5
|
| 54 |
+
# via huggingface-hub
|
| 55 |
httpcore==1.0.7
|
| 56 |
# via httpx
|
| 57 |
httpx==0.28.1
|
|
|
|
| 59 |
# gradio
|
| 60 |
# gradio-client
|
| 61 |
# safehttpx
|
| 62 |
+
huggingface-hub==0.34.3
|
| 63 |
# via
|
| 64 |
# gradio
|
| 65 |
# gradio-client
|
uv.lock
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wheels/dlib-20.0.0-cp310-cp310-linux_x86_64.whl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1f25f5604f01ac3d94519b4dfaf31cd592296a2db5fe73e2ea2e8bb8737cb4b
|
| 3 |
+
size 4362070
|