Spaces:
Running
Running
Commit
·
9d5ec61
1
Parent(s):
796e66c
chore: pin deps + add bs4/html5lib/pdfminer for Spaces
Browse files- requirements.txt +30 -23
requirements.txt
CHANGED
|
@@ -1,27 +1,34 @@
|
|
| 1 |
-
# Core
|
| 2 |
-
streamlit
|
| 3 |
-
pydantic
|
| 4 |
-
python-dotenv
|
| 5 |
-
pandas
|
| 6 |
-
numpy
|
| 7 |
|
| 8 |
-
# RAG/Search
|
| 9 |
-
faiss-cpu
|
| 10 |
-
sentence-transformers
|
| 11 |
-
requests
|
| 12 |
-
|
| 13 |
-
tqdm
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
|
| 20 |
-
#
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
-
#
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ---------- Core UI ----------
|
| 2 |
+
streamlit==1.36.*
|
| 3 |
+
pydantic==2.7.*
|
| 4 |
+
python-dotenv==1.0.*
|
| 5 |
+
pandas==2.2.*
|
| 6 |
+
numpy==1.26.* # safer with faiss-cpu wheels on Spaces
|
| 7 |
|
| 8 |
+
# ---------- RAG / Search ----------
|
| 9 |
+
faiss-cpu==1.8.0
|
| 10 |
+
sentence-transformers==3.0.* # requires torch>=2; see below
|
| 11 |
+
requests==2.32.*
|
| 12 |
+
PyYAML==6.0.*
|
| 13 |
+
tqdm==4.66.*
|
| 14 |
|
| 15 |
+
# ---------- HTML / PDF parsing (adds bs4 fallbacks) ----------
|
| 16 |
+
beautifulsoup4==4.12.*
|
| 17 |
+
html5lib==1.1 # pure-Python parser fallback (no system libs)
|
| 18 |
+
lxml==4.9.* # optional: faster; our code falls back if missing
|
| 19 |
+
pdfminer.six==20231228 # PDF text extraction
|
| 20 |
|
| 21 |
+
# ---------- Optional ML stack (needed for s-transformers 3.x) ----------
|
| 22 |
+
torch==2.2.* # CPU wheels available on Spaces
|
| 23 |
+
transformers==4.41.* # modern, compatible with s-transformers 3.x
|
| 24 |
+
accelerate==0.30.* # optional, safe pin
|
| 25 |
|
| 26 |
+
# ---------- Financial / Viz (unchanged, pinned) ----------
|
| 27 |
+
yfinance==0.2.*
|
| 28 |
+
plotly==5.22.* # any 5.x works; pin to recent
|
| 29 |
+
matplotlib==3.8.* # modern, but not bleeding-edge
|
| 30 |
+
|
| 31 |
+
# ---------- (Optional) Chronos time-series ----------
|
| 32 |
+
# NOTE: This adds heavy deps and longer build times.
|
| 33 |
+
# Keep commented unless you actually use Chronos in the Space.
|
| 34 |
+
# git+https://github.com/amazon-science/chronos-forecasting.git
|