michaellupo74 commited on
Commit
9d5ec61
·
1 Parent(s): 796e66c

chore: pin deps + add bs4/html5lib/pdfminer for Spaces

Browse files
Files changed (1) hide show
  1. requirements.txt +30 -23
requirements.txt CHANGED
@@ -1,27 +1,34 @@
1
- # Core dependencies
2
- streamlit>=1.36
3
- pydantic>=2.7
4
- python-dotenv>=1.0
5
- pandas>=2.2
6
- numpy>=1.26
7
 
8
- # RAG/Search functionality (your existing)
9
- faiss-cpu>=1.8
10
- sentence-transformers>=3.0
11
- requests>=2.32
12
- pyyaml>=6.0
13
- tqdm>=4.66
14
 
15
- # AWS Chronos for time series forecasting
16
- git+https://github.com/amazon-science/chronos-forecasting.git
17
- torch>=1.9.0
18
- transformers>=4.21.0
 
19
 
20
- # Financial data and visualization
21
- yfinance>=0.2.0
22
- plotly>=5.0.0
23
- matplotlib>=3.5.0
24
 
25
- # Additional utilities
26
- python-dateutil>=2.8.0
27
- accelerate>=0.20.0
 
 
 
 
 
 
 
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