Daankular commited on
Commit
834793f
·
1 Parent(s): c8429f7

Bust build cache; pin numpy>=2 at build + runtime upgrade after chumpy chain

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -59,6 +59,10 @@ def _install_runtime_packages():
59
  [sys.executable, "-m", "pip", "install", "--quiet", "--no-build-isolation"]
60
  + _NO_ISOLATION_PACKAGES, check=True,
61
  )
 
 
 
 
62
  subprocess.run(
63
  [sys.executable, "-m", "pip", "install", "--quiet", "--no-deps"]
64
  + _NO_DEPS_PACKAGES, check=True,
 
59
  [sys.executable, "-m", "pip", "install", "--quiet", "--no-build-isolation"]
60
  + _NO_ISOLATION_PACKAGES, check=True,
61
  )
62
+ # Ensure numpy>=2 — chumpy transitive chain can pin it back to 1.26.4
63
+ subprocess.run(
64
+ [sys.executable, "-m", "pip", "install", "--quiet", "--upgrade", "numpy>=2"], check=True,
65
+ )
66
  subprocess.run(
67
  [sys.executable, "-m", "pip", "install", "--quiet", "--no-deps"]
68
  + _NO_DEPS_PACKAGES, check=True,
requirements.txt CHANGED
@@ -1,5 +1,6 @@
1
- # HuggingFace ZeroGPU Space — Gradio SDK
2
  spaces
 
3
 
4
  # Git-pinned installs
5
  # NOTE: hmr2, chumpy, skel, nvdiffrast, diso, detectron2 are installed at runtime
 
1
+ # HuggingFace ZeroGPU Space — Gradio SDK [cache-bust: 2]
2
  spaces
3
+ numpy>=2
4
 
5
  # Git-pinned installs
6
  # NOTE: hmr2, chumpy, skel, nvdiffrast, diso, detectron2 are installed at runtime