muhammadhasnain100 Cursor commited on
Commit
09e0fa5
·
1 Parent(s): a77098c

Pin NumPy <2 for PyTorch and faiss-cpu compatibility on HF Spaces

Browse files
Files changed (1) hide show
  1. requirements.txt +3 -0
requirements.txt CHANGED
@@ -1,6 +1,9 @@
1
  # CPU-only PyTorch wheels (avoids CUDA). transformers has no separate CPU wheel—it runs on CPU via this torch.
2
  --extra-index-url https://download.pytorch.org/whl/cpu
3
 
 
 
 
4
  pymongo==4.9.2
5
  groq>=0.30.0,<1.0.0
6
  google-genai>=1.0.0
 
1
  # CPU-only PyTorch wheels (avoids CUDA). transformers has no separate CPU wheel—it runs on CPU via this torch.
2
  --extra-index-url https://download.pytorch.org/whl/cpu
3
 
4
+ # PyTorch, faiss-cpu, and related wheels are built against NumPy 1.x; NumPy 2 breaks imports (_ARRAY_API).
5
+ numpy>=1.26.4,<2
6
+
7
  pymongo==4.9.2
8
  groq>=0.30.0,<1.0.0
9
  google-genai>=1.0.0