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

Please work

Browse files
Files changed (3) hide show
  1. clean_requirements.py +57 -0
  2. raw_freeze.txt +251 -0
  3. requirements.txt +21 -18
clean_requirements.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Clean pip freeze output for HuggingFace Spaces deployment
3
+ Usage: python clean_requirements.py < raw_freeze.txt > requirements.txt
4
+ """
5
+
6
+ import sys
7
+ import re
8
+
9
+ def clean_requirements(lines):
10
+ """Clean pip freeze output for deployment."""
11
+ cleaned = []
12
+
13
+ for line in lines:
14
+ line = line.strip()
15
+
16
+ # Skip empty lines and comments
17
+ if not line or line.startswith('#'):
18
+ continue
19
+
20
+ # Skip editable installs (local packages)
21
+ if line.startswith('-e') or line.startswith('file://'):
22
+ print(f"# Skipped local package: {line}", file=sys.stderr)
23
+ continue
24
+
25
+ # Skip packages installed from git
26
+ if 'git+' in line or '@' in line and 'git' in line:
27
+ print(f"# Skipped git package: {line}", file=sys.stderr)
28
+ continue
29
+
30
+ # Remove local version identifiers (+cpu, +cu118, etc)
31
+ # torch==2.0.1+cpu -> torch==2.0.1
32
+ line = re.sub(r'\+[a-z0-9]+', '', line)
33
+
34
+ # Remove platform-specific wheel info
35
+ # some-package @ file:///... -> some-package==version
36
+ if ' @ ' in line:
37
+ # Extract just package name and try to find version
38
+ pkg_name = line.split(' @ ')[0].strip()
39
+ print(f"# Simplified: {line} -> {pkg_name}", file=sys.stderr)
40
+ # Try to keep just the package name without version
41
+ # HF Spaces will resolve the version
42
+ cleaned.append(pkg_name)
43
+ continue
44
+
45
+ cleaned.append(line)
46
+
47
+ return cleaned
48
+
49
+ if __name__ == '__main__':
50
+ lines = sys.stdin.readlines()
51
+ cleaned = clean_requirements(lines)
52
+
53
+ print("# Requirements generated from pip freeze")
54
+ print("# Cleaned for HuggingFace Spaces deployment\n")
55
+
56
+ for line in sorted(set(cleaned)): # Remove duplicates and sort
57
+ print(line)
raw_freeze.txt ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
requirements.txt CHANGED
@@ -1,3 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  aiobotocore==2.24.1
2
  aiofiles==24.1.0
3
  aiohappyeyeballs==2.6.1
@@ -16,7 +29,6 @@ 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
@@ -30,13 +42,12 @@ 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
@@ -54,9 +65,9 @@ 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
@@ -76,7 +87,6 @@ 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
@@ -85,17 +95,17 @@ 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
@@ -104,11 +114,10 @@ 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
@@ -152,7 +161,6 @@ 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
@@ -160,7 +168,6 @@ 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
@@ -171,7 +178,6 @@ 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
@@ -179,15 +185,13 @@ 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
@@ -208,7 +212,6 @@ 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
@@ -238,10 +241,10 @@ 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
 
1
+ # Requirements generated from pip freeze
2
+ # Cleaned for HuggingFace Spaces deployment
3
+
4
+ Brotli==1.1.0
5
+ Deprecated==1.2.18
6
+ Jinja2==3.1.6
7
+ MarkupSafe==3.0.2
8
+ PIMS==0.7
9
+ PubChemPy==1.0.5
10
+ PyWavelets==1.8.0
11
+ PyYAML==6.0.2
12
+ Pygments==2.19.2
13
+ SQLAlchemy==2.0.43
14
  aiobotocore==2.24.1
15
  aiofiles==24.1.0
16
  aiohappyeyeballs==2.6.1
 
29
  beautifulsoup4==4.13.5
30
  biolearn==0.8.1
31
  botocore==1.39.11
 
32
  cachetools==5.5.2
33
  certifi==2025.8.3
34
  cffi==2.0.0
 
42
  cvxpy==1.6.0
43
  cycler==0.12.1
44
  cyclopts==3.23.0
 
45
  dask-expr==1.1.19
46
  dask-image==2024.5.3
47
+ dask==2024.11.2
48
  datashader==0.18.2
49
  debugpy==1.8.17
50
  decorator==5.2.1
 
51
  distro==1.9.0
52
  docstring_parser==0.17.0
53
  docutils==0.22
 
65
  frozenlist==1.7.0
66
  fsspec==2025.7.0
67
  geopandas==1.1.1
 
68
  google-auth==2.40.3
69
  google-genai==1.38.0
70
+ google==3.0.0
71
  gradio==5.44.0
72
  gradio_client==1.12.1
73
  greenlet==3.2.4
 
87
  ipython==9.6.0
88
  ipython_pygments_lexers==1.1.1
89
  jedi==0.19.2
 
90
  jiter==0.10.0
91
  jmespath==1.0.1
92
  joblib==1.5.1
 
95
  jupyter_client==8.6.3
96
  jupyter_core==5.9.1
97
  kiwisolver==1.4.9
 
98
  langchain-anthropic==0.3.19
99
  langchain-core==0.3.75
100
  langchain-huggingface==0.3.1
101
  langchain-ollama==0.3.7
102
  langchain-openai==0.3.32
103
  langchain-text-splitters==0.3.9
104
+ langchain==0.3.27
105
  langgraph-checkpoint==2.1.1
106
  langgraph-prebuilt==0.6.4
107
  langgraph-sdk==0.2.3
108
+ langgraph==0.6.6
109
  langsmith==0.4.18
110
  lazy_loader==0.4
111
  lazyslide==0.8.1
 
114
  llvmlite==0.44.0
115
  locket==1.0.0
116
  markdown-it-py==4.0.0
 
117
  marshmallow==4.0.1
 
118
  matplotlib-inline==0.1.7
119
  matplotlib-scalebar==0.9.0
120
+ matplotlib==3.10.5
121
  mdurl==0.1.2
122
  mpmath==1.3.0
123
  multidict==6.6.4
 
161
  partd==1.4.2
162
  pexpect==4.9.0
163
  pillow==10.4.0
 
164
  platformdirs==4.4.0
165
  pooch==1.8.2
166
  prompt_toolkit==3.0.52
 
168
  protobuf==6.32.1
169
  psutil==7.0.0
170
  ptyprocess==0.7.0
 
171
  pure_eval==0.2.3
172
  pyaging==0.1.27
173
  pyarrow==21.0.0
 
178
  pydantic==2.11.7
179
  pydantic_core==2.33.2
180
  pydub==0.25.1
 
181
  pyogrio==0.11.1
182
  pyparsing==3.2.3
183
  pyproj==3.7.2
 
185
  python-dotenv==1.1.1
186
  python-multipart==0.0.20
187
  pytz==2025.2
 
 
188
  pyzmq==27.1.0
189
  rdkit==2025.9.1
190
  regex==2025.7.34
 
191
  requests-toolbelt==1.0.0
192
+ requests==2.32.5
193
  rich-rst==1.3.1
194
+ rich==14.1.0
195
  rsa==4.9.1
196
  ruff==0.12.10
197
  s3fs==2025.7.0
 
212
  soupsieve==2.8
213
  spatial_image==1.2.3
214
  spatialdata==0.5.0
 
215
  stack-data==0.6.3
216
  starlette==0.47.3
217
  sympy==1.14.0
 
241
  websockets==15.0.1
242
  wrapt==1.17.3
243
  wsidata==0.7.1
 
244
  xarray-dataclass==3.0.0
245
  xarray-schema==0.0.3
246
  xarray-spatial==0.4.0
247
+ xarray==2025.8.0
248
  xformers==0.0.31
249
  xlrd==2.0.2
250
  xxhash==3.5.0