ryanDing26 commited on
Commit
5582d01
·
1 Parent(s): b098c0f

custom env

Browse files
Files changed (2) hide show
  1. requirements.txt +251 -130
  2. t.txt +130 -0
requirements.txt CHANGED
@@ -1,130 +1,251 @@
1
- # # Core dependencies
2
- # requests
3
- # pandas
4
- # numpy
5
- # pydantic
6
-
7
- # # Gradio - CRITICAL FIX: was 4.4.1 (typo), should be 4.44.1
8
- # gradio
9
-
10
- # # LangChain ecosystem
11
- # langchain-core
12
- # langchain-openai
13
- # langchain-anthropic
14
- # langgraph
15
-
16
- # # LLM API SDKs
17
- # openai
18
- # anthropic
19
- # python-dotenv
20
-
21
- # # Pin problematic dependencies BEFORE lazyslide to avoid backtracking
22
- # # xarray==2024.10.0
23
- # # shapely==2.0.6
24
- # # scipy==1.11.4
25
- # # numba==0.60.0
26
- # # dask==2024.11.2
27
- # scipy
28
- # shapely
29
-
30
- # # ML/Vision dependencies
31
- # torch
32
- # torchvision
33
- # timm
34
- # transformers
35
- # huggingface-hub
36
- # Pillow
37
-
38
- # # LazySlide - now should install quickly with pinned deps above
39
- # lazyslide
40
-
41
- # # PRISM dependencies
42
- # python-environ
43
- # protobuf
44
- # sacremoses
45
-
46
- # # Whole slide image support
47
- # # openslide-python
48
-
49
- # # Additional tools (optional - comment out if build still times out)
50
- # scikit-image
51
- # opencv-python-headless
52
- # matplotlib
53
- # EXACT VERSION PINS - Builds in <5 minutes on HF Spaces
54
- # These versions are known to work together
55
-
56
- # ============================================
57
- # CORE (Required)
58
- # ============================================
59
- gradio==5.7.0
60
- python-dotenv==1.0.0
61
- requests==2.32.3
62
-
63
- # ============================================
64
- # DATA (Minimal)
65
- # ============================================
66
- numpy==1.26.4
67
- pandas==2.2.2
68
- Pillow==11.0.0
69
-
70
- # ============================================
71
- # LLM APIs
72
- # ============================================
73
- anthropic==0.71.0
74
- pydantic==2.9.2
75
-
76
- # ============================================
77
- # LANGCHAIN (Core only)
78
- # ============================================
79
- langchain-core==0.3.28
80
- langchain-anthropic==0.3.6
81
-
82
- # ============================================
83
- # LAZYSLIDE DEPENDENCY STACK - ALL PRE-PINNED
84
- # This section ensures pip doesn't backtrack
85
- # ============================================
86
-
87
- # First layer - base numerical libs
88
- llvmlite==0.43.0
89
- numba==0.60.0
90
- scipy==1.13.1
91
-
92
- # Second layer - spatial/geo
93
- shapely==2.0.6
94
- pyproj==3.6.1
95
-
96
- # Third layer - data processing
97
- toolz==0.12.1
98
- cloudpickle==3.0.0
99
- partd==1.4.1
100
- dask==2024.5.0
101
- fsspec==2024.3.1
102
-
103
- # Fourth layer - array/dataframe
104
- xarray==2024.3.0
105
-
106
- # Fifth layer - geospatial
107
- geopandas==0.14.4
108
-
109
- # Sixth layer - imaging
110
- tifffile==2024.8.30
111
- zarr==2.18.3
112
-
113
- # Finally - lazyslide (should install quickly now)
114
- lazyslide==0.9.2
115
-
116
- # ============================================
117
- # OPTIONAL - Comment out if not needed
118
- # ============================================
119
- # transformers==4.46.0
120
- # huggingface-hub==0.26.3
121
-
122
- # ============================================
123
- # DO NOT ADD - These cause resolution issues:
124
- # ============================================
125
- # torch # Too heavy for free tier, causes OOM
126
- # torchvision
127
- # timm
128
- # opencv-python-headless
129
- # scikit-image
130
- # matplotlib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiobotocore==2.24.1
2
+ aiofiles==24.1.0
3
+ aiohappyeyeballs==2.6.1
4
+ aiohttp==3.12.15
5
+ aioitertools==0.12.0
6
+ aiosignal==1.4.0
7
+ anndata==0.12.2
8
+ annotated-types==0.7.0
9
+ anthropic==0.64.0
10
+ anyio==4.10.0
11
+ appdirs==1.4.4
12
+ array-api-compat==1.12.0
13
+ asciitree==0.3.3
14
+ asttokens==3.0.0
15
+ attrs==25.3.0
16
+ beautifulsoup4==4.13.5
17
+ biolearn==0.8.1
18
+ botocore==1.39.11
19
+ Brotli==1.1.0
20
+ cachetools==5.5.2
21
+ certifi==2025.8.3
22
+ cffi==2.0.0
23
+ charset-normalizer==3.4.3
24
+ clarabel==0.11.1
25
+ click==8.2.1
26
+ cloudpickle==3.1.1
27
+ colorcet==3.1.0
28
+ comm==0.2.3
29
+ contourpy==1.3.2
30
+ cvxpy==1.6.0
31
+ cycler==0.12.1
32
+ cyclopts==3.23.0
33
+ dask==2024.11.2
34
+ dask-expr==1.1.19
35
+ dask-image==2024.5.3
36
+ datashader==0.18.2
37
+ debugpy==1.8.17
38
+ decorator==5.2.1
39
+ Deprecated==1.2.18
40
+ distro==1.9.0
41
+ docstring_parser==0.17.0
42
+ docutils==0.22
43
+ dotenv==0.9.9
44
+ ecos==2.0.14
45
+ einops==0.8.0
46
+ environs==11.0.0
47
+ et_xmlfile==2.0.0
48
+ executing==2.2.1
49
+ fastapi==0.116.1
50
+ fasteners==0.20
51
+ ffmpy==0.6.1
52
+ filelock==3.19.1
53
+ fonttools==4.59.1
54
+ frozenlist==1.7.0
55
+ fsspec==2025.7.0
56
+ geopandas==1.1.1
57
+ google==3.0.0
58
+ google-auth==2.40.3
59
+ google-genai==1.38.0
60
+ gradio==5.44.0
61
+ gradio_client==1.12.1
62
+ greenlet==3.2.4
63
+ groovy==0.1.2
64
+ h11==0.16.0
65
+ h5py==3.14.0
66
+ hf-xet==1.1.8
67
+ histolab==0.7.0
68
+ httpcore==1.0.9
69
+ httpx==0.28.1
70
+ huggingface-hub==0.34.4
71
+ idna==3.10
72
+ imagecodecs==2025.8.2
73
+ imageio==2.37.0
74
+ importlib_metadata==8.7.0
75
+ ipykernel==7.0.1
76
+ ipython==9.6.0
77
+ ipython_pygments_lexers==1.1.1
78
+ jedi==0.19.2
79
+ Jinja2==3.1.6
80
+ jiter==0.10.0
81
+ jmespath==1.0.1
82
+ joblib==1.5.1
83
+ jsonpatch==1.33
84
+ jsonpointer==3.0.0
85
+ jupyter_client==8.6.3
86
+ jupyter_core==5.9.1
87
+ kiwisolver==1.4.9
88
+ langchain==0.3.27
89
+ langchain-anthropic==0.3.19
90
+ langchain-core==0.3.75
91
+ langchain-huggingface==0.3.1
92
+ langchain-ollama==0.3.7
93
+ langchain-openai==0.3.32
94
+ langchain-text-splitters==0.3.9
95
+ langgraph==0.6.6
96
+ langgraph-checkpoint==2.1.1
97
+ langgraph-prebuilt==0.6.4
98
+ langgraph-sdk==0.2.3
99
+ langsmith==0.4.18
100
+ lazy_loader==0.4
101
+ lazyslide==0.8.1
102
+ legacy-api-wrap==1.4.1
103
+ legendkit==0.3.6
104
+ llvmlite==0.44.0
105
+ locket==1.0.0
106
+ markdown-it-py==4.0.0
107
+ MarkupSafe==3.0.2
108
+ marshmallow==4.0.1
109
+ matplotlib==3.10.5
110
+ matplotlib-inline==0.1.7
111
+ matplotlib-scalebar==0.9.0
112
+ mdurl==0.1.2
113
+ mpmath==1.3.0
114
+ multidict==6.6.4
115
+ multipledispatch==1.0.0
116
+ multiscale_spatial_image==2.0.3
117
+ natsort==8.4.0
118
+ nest-asyncio==1.6.0
119
+ networkx==3.5
120
+ nltk==3.9.1
121
+ numba==0.61.2
122
+ numcodecs==0.15.1
123
+ numpy==1.24.4
124
+ nvidia-cublas-cu12==12.6.4.1
125
+ nvidia-cuda-cupti-cu12==12.6.80
126
+ nvidia-cuda-nvrtc-cu12==12.6.77
127
+ nvidia-cuda-runtime-cu12==12.6.77
128
+ nvidia-cudnn-cu12==9.5.1.17
129
+ nvidia-cufft-cu12==11.3.0.4
130
+ nvidia-cufile-cu12==1.11.1.6
131
+ nvidia-curand-cu12==10.3.7.77
132
+ nvidia-cusolver-cu12==11.7.1.2
133
+ nvidia-cusparse-cu12==12.5.4.2
134
+ nvidia-cusparselt-cu12==0.6.3
135
+ nvidia-nccl-cu12==2.26.2
136
+ nvidia-nvjitlink-cu12==12.6.85
137
+ nvidia-nvtx-cu12==12.6.77
138
+ ollama==0.5.3
139
+ ome-zarr==0.11.1
140
+ openai==1.102.0
141
+ opencv-python-headless==4.11.0.86
142
+ openpyxl==3.1.5
143
+ openslide-bin==4.0.0.8
144
+ openslide-python==1.4.2
145
+ orjson==3.11.3
146
+ ormsgpack==1.10.0
147
+ osqp==1.0.5
148
+ packaging==25.0
149
+ pandas==2.3.2
150
+ param==2.2.1
151
+ parso==0.8.5
152
+ partd==1.4.2
153
+ pexpect==4.9.0
154
+ pillow==10.4.0
155
+ PIMS==0.7
156
+ platformdirs==4.4.0
157
+ pooch==1.8.2
158
+ prompt_toolkit==3.0.52
159
+ propcache==0.3.2
160
+ protobuf==6.32.1
161
+ psutil==7.0.0
162
+ ptyprocess==0.7.0
163
+ PubChemPy==1.0.5
164
+ pure_eval==0.2.3
165
+ pyaging==0.1.27
166
+ pyarrow==21.0.0
167
+ pyasn1==0.6.1
168
+ pyasn1_modules==0.4.2
169
+ pycparser==2.23
170
+ pyct==0.5.0
171
+ pydantic==2.11.7
172
+ pydantic_core==2.33.2
173
+ pydub==0.25.1
174
+ Pygments==2.19.2
175
+ pyogrio==0.11.1
176
+ pyparsing==3.2.3
177
+ pyproj==3.7.2
178
+ python-dateutil==2.9.0
179
+ python-dotenv==1.1.1
180
+ python-multipart==0.0.20
181
+ pytz==2025.2
182
+ PyWavelets==1.8.0
183
+ PyYAML==6.0.2
184
+ pyzmq==27.1.0
185
+ rdkit==2025.9.1
186
+ regex==2025.7.34
187
+ requests==2.32.5
188
+ requests-toolbelt==1.0.0
189
+ rich==14.1.0
190
+ rich-rst==1.3.1
191
+ rsa==4.9.1
192
+ ruff==0.12.10
193
+ s3fs==2025.7.0
194
+ sacremoses==0.1.1
195
+ safehttpx==0.1.6
196
+ safetensors==0.6.2
197
+ scikit-image==0.19.3
198
+ scikit-learn==1.7.1
199
+ scipy==1.16.1
200
+ scs==3.2.9
201
+ seaborn==0.13.2
202
+ semantic-version==2.10.0
203
+ shapely==2.1.1
204
+ shellingham==1.5.4
205
+ six==1.17.0
206
+ slicerator==1.1.0
207
+ sniffio==1.3.1
208
+ soupsieve==2.8
209
+ spatial_image==1.2.3
210
+ spatialdata==0.5.0
211
+ SQLAlchemy==2.0.43
212
+ stack-data==0.6.3
213
+ starlette==0.47.3
214
+ sympy==1.14.0
215
+ tenacity==9.1.2
216
+ threadpoolctl==3.6.0
217
+ tifffile==2025.5.10
218
+ tiffslide==2.5.1
219
+ tiktoken==0.11.0
220
+ timm==1.0.19
221
+ tokenizers==0.21.4
222
+ tomlkit==0.13.3
223
+ toolz==1.0.0
224
+ torch==2.7.1
225
+ torchvision==0.23.0
226
+ tornado==6.5.2
227
+ tqdm==4.67.1
228
+ traitlets==5.14.3
229
+ transformers==4.53.3
230
+ triton==3.3.1
231
+ typer==0.16.1
232
+ typing-inspection==0.4.1
233
+ typing_extensions==4.15.0
234
+ tzdata==2025.2
235
+ urllib3==2.5.0
236
+ uvicorn==0.35.0
237
+ wcwidth==0.2.14
238
+ websockets==15.0.1
239
+ wrapt==1.17.3
240
+ wsidata==0.7.1
241
+ xarray==2025.8.0
242
+ xarray-dataclass==3.0.0
243
+ xarray-schema==0.0.3
244
+ xarray-spatial==0.4.0
245
+ xformers==0.0.31
246
+ xlrd==2.0.2
247
+ xxhash==3.5.0
248
+ yarl==1.20.1
249
+ zarr==2.18.7
250
+ zipp==3.23.0
251
+ zstandard==0.24.0
t.txt ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # # Core dependencies
2
+ # requests
3
+ # pandas
4
+ # numpy
5
+ # pydantic
6
+
7
+ # # Gradio - CRITICAL FIX: was 4.4.1 (typo), should be 4.44.1
8
+ # gradio
9
+
10
+ # # LangChain ecosystem
11
+ # langchain-core
12
+ # langchain-openai
13
+ # langchain-anthropic
14
+ # langgraph
15
+
16
+ # # LLM API SDKs
17
+ # openai
18
+ # anthropic
19
+ # python-dotenv
20
+
21
+ # # Pin problematic dependencies BEFORE lazyslide to avoid backtracking
22
+ # # xarray==2024.10.0
23
+ # # shapely==2.0.6
24
+ # # scipy==1.11.4
25
+ # # numba==0.60.0
26
+ # # dask==2024.11.2
27
+ # scipy
28
+ # shapely
29
+
30
+ # # ML/Vision dependencies
31
+ # torch
32
+ # torchvision
33
+ # timm
34
+ # transformers
35
+ # huggingface-hub
36
+ # Pillow
37
+
38
+ # # LazySlide - now should install quickly with pinned deps above
39
+ # lazyslide
40
+
41
+ # # PRISM dependencies
42
+ # python-environ
43
+ # protobuf
44
+ # sacremoses
45
+
46
+ # # Whole slide image support
47
+ # # openslide-python
48
+
49
+ # # Additional tools (optional - comment out if build still times out)
50
+ # scikit-image
51
+ # opencv-python-headless
52
+ # matplotlib
53
+ # EXACT VERSION PINS - Builds in <5 minutes on HF Spaces
54
+ # These versions are known to work together
55
+
56
+ # ============================================
57
+ # CORE (Required)
58
+ # ============================================
59
+ gradio==5.7.0
60
+ python-dotenv==1.0.0
61
+ requests==2.32.3
62
+
63
+ # ============================================
64
+ # DATA (Minimal)
65
+ # ============================================
66
+ numpy==1.26.4
67
+ pandas==2.2.2
68
+ Pillow==11.0.0
69
+
70
+ # ============================================
71
+ # LLM APIs
72
+ # ============================================
73
+ anthropic==0.71.0
74
+ pydantic==2.9.2
75
+
76
+ # ============================================
77
+ # LANGCHAIN (Core only)
78
+ # ============================================
79
+ langchain-core==0.3.28
80
+ langchain-anthropic==0.3.6
81
+
82
+ # ============================================
83
+ # LAZYSLIDE DEPENDENCY STACK - ALL PRE-PINNED
84
+ # This section ensures pip doesn't backtrack
85
+ # ============================================
86
+
87
+ # First layer - base numerical libs
88
+ llvmlite==0.43.0
89
+ numba==0.60.0
90
+ scipy==1.13.1
91
+
92
+ # Second layer - spatial/geo
93
+ shapely==2.0.6
94
+ pyproj==3.6.1
95
+
96
+ # Third layer - data processing
97
+ toolz==0.12.1
98
+ cloudpickle==3.0.0
99
+ partd==1.4.1
100
+ dask==2024.5.0
101
+ fsspec==2024.3.1
102
+
103
+ # Fourth layer - array/dataframe
104
+ xarray==2024.3.0
105
+
106
+ # Fifth layer - geospatial
107
+ geopandas==0.14.4
108
+
109
+ # Sixth layer - imaging
110
+ tifffile==2024.8.30
111
+ zarr==2.18.3
112
+
113
+ # Finally - lazyslide (should install quickly now)
114
+ lazyslide==0.9.2
115
+
116
+ # ============================================
117
+ # OPTIONAL - Comment out if not needed
118
+ # ============================================
119
+ # transformers==4.46.0
120
+ # huggingface-hub==0.26.3
121
+
122
+ # ============================================
123
+ # DO NOT ADD - These cause resolution issues:
124
+ # ============================================
125
+ # torch # Too heavy for free tier, causes OOM
126
+ # torchvision
127
+ # timm
128
+ # opencv-python-headless
129
+ # scikit-image
130
+ # matplotlib