Spaces:
Sleeping
Sleeping
Add missing deps: sentencepiece, spandrel, imageio; fix SKEL moderngl-window==2.4.6 conflict
Browse files- app.py +4 -2
- requirements.txt +3 -0
app.py
CHANGED
|
@@ -60,9 +60,11 @@ def _install_runtime_packages():
|
|
| 60 |
[sys.executable, "-m", "pip", "install", "--quiet", "--no-build-isolation"]
|
| 61 |
+ _NO_ISOLATION_PACKAGES, check=True,
|
| 62 |
)
|
| 63 |
-
# Ensure numpy>=2 — chumpy
|
|
|
|
| 64 |
subprocess.run(
|
| 65 |
-
[sys.executable, "-m", "pip", "install", "--quiet", "--upgrade",
|
|
|
|
| 66 |
)
|
| 67 |
subprocess.run(
|
| 68 |
[sys.executable, "-m", "pip", "install", "--quiet", "--no-deps"]
|
|
|
|
| 60 |
[sys.executable, "-m", "pip", "install", "--quiet", "--no-build-isolation"]
|
| 61 |
+ _NO_ISOLATION_PACKAGES, check=True,
|
| 62 |
)
|
| 63 |
+
# Ensure numpy>=2 and moderngl-window>=3 — chumpy pins numpy to 1.26.4 and
|
| 64 |
+
# skel pins moderngl-window==2.4.6 (incompatible with numpy>=2); re-upgrade both.
|
| 65 |
subprocess.run(
|
| 66 |
+
[sys.executable, "-m", "pip", "install", "--quiet", "--upgrade",
|
| 67 |
+
"numpy>=2", "moderngl-window>=3.0.0"], check=True,
|
| 68 |
)
|
| 69 |
subprocess.run(
|
| 70 |
[sys.executable, "-m", "pip", "install", "--quiet", "--no-deps"]
|
requirements.txt
CHANGED
|
@@ -76,3 +76,6 @@ gdown
|
|
| 76 |
pycocotools
|
| 77 |
jaxtyping
|
| 78 |
typeguard
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
pycocotools
|
| 77 |
jaxtyping
|
| 78 |
typeguard
|
| 79 |
+
sentencepiece
|
| 80 |
+
spandrel
|
| 81 |
+
imageio
|