internationalscholarsprogram commited on
Commit
7407ad9
·
1 Parent(s): ac8de1d

Fix dependency conflict: set numpy==1.26.4 and add runtime.txt

Browse files
Files changed (2) hide show
  1. requirements.txt +4 -4
  2. runtime.txt +1 -0
requirements.txt CHANGED
@@ -16,13 +16,14 @@ langchain-huggingface==0.1.2
16
 
17
  # --- Embeddings / Hugging Face ---
18
  transformers>=4.46,<5
19
- torch==2.9.0+cpu # bump to a wheel that exists for your Python
20
  huggingface-hub>=0.23.1,<0.26
21
- numpy>=2.0,<3 # ← 1.26.x won’t install on 3.13; allow NumPy 2.x
 
22
 
23
  # --- Required extras ---
24
  pypdf>=4.2.0
25
- onnxruntime>=1.19.2 # newer ONNXRuntime has better recent-Python support
26
 
27
  # --- Ingest helpers ---
28
  tqdm>=4.66
@@ -31,4 +32,3 @@ pymupdf>=1.24
31
  beautifulsoup4>=4.12
32
  lxml>=5.1
33
  docx2txt>=0.8
34
- pandas>=2.2,<3
 
16
 
17
  # --- Embeddings / Hugging Face ---
18
  transformers>=4.46,<5
19
+ torch==2.3.1+cpu # CPU wheel from the PyTorch index above
20
  huggingface-hub>=0.23.1,<0.26
21
+ numpy==1.26.4 # compatible with langchain on Py<3.12
22
+ pandas>=2.2,<3
23
 
24
  # --- Required extras ---
25
  pypdf>=4.2.0
26
+ onnxruntime>=1.18.0
27
 
28
  # --- Ingest helpers ---
29
  tqdm>=4.66
 
32
  beautifulsoup4>=4.12
33
  lxml>=5.1
34
  docx2txt>=0.8
 
runtime.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ python-3.12