sachinchandrankallar commited on
Commit
abe5711
·
1 Parent(s): 72ecc68

new build

Browse files
Files changed (6) hide show
  1. .dockerignore +3 -0
  2. .gitignore +3 -0
  3. .huggingface.yaml +1 -0
  4. DEPLOYMENT.md +13 -0
  5. docker_build.log +99 -0
  6. requirements.txt +17 -290
.dockerignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # This file tells Hugging Face Spaces to use Docker
2
+ # and exposes the correct port for Flask/Gradio/FastAPI
3
+ # No further config needed if Dockerfile is present
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # This file tells Hugging Face Spaces to use Docker
2
+ # and exposes the correct port for Flask/Gradio/FastAPI
3
+ # No further config needed if Dockerfile is present
.huggingface.yaml ADDED
@@ -0,0 +1 @@
 
 
1
+ runtime: docker
DEPLOYMENT.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Hugging Face Spaces Docker deployment instructions
2
+
3
+ # 1. Make sure your Dockerfile exposes port 7860 and runs your app on 0.0.0.0:7860
4
+ # 2. Your Flask app should listen on host='0.0.0.0' and port=7860
5
+ # 3. requirements.txt should include all dependencies
6
+ # 4. .huggingface.yaml with 'runtime: docker' is present
7
+ # 5. .dockerignore and .gitignore are present
8
+
9
+ # To test locally:
10
+ # docker build -t hntai-app .
11
+ # docker run -p 7860:7860 hntai-app
12
+
13
+ # Your app will be available at http://localhost:7860
docker_build.log ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #0 building with "desktop-linux" instance using docker driver
2
+
3
+ #1 [internal] load build definition from Dockerfile
4
+ #1 transferring dockerfile: 30B 0.0s
5
+ #1 transferring dockerfile: 955B 0.2s done
6
+ #1 DONE 0.2s
7
+
8
+ #2 [internal] load metadata for docker.io/library/python:3.10-slim
9
+ #2 ...
10
+
11
+ #3 [auth] library/python:pull token for registry-1.docker.io
12
+ #3 DONE 0.0s
13
+
14
+ #2 [internal] load metadata for docker.io/library/python:3.10-slim
15
+ #2 DONE 3.6s
16
+
17
+ #4 [internal] load .dockerignore
18
+ #4 transferring context: 205B done
19
+ #4 DONE 0.0s
20
+
21
+ #5 [internal] load build context
22
+ #5 ...
23
+
24
+ #6 [1/6] FROM docker.io/library/python:3.10-slim@sha256:2ee0fb8794bf82af1b2db168ada5869b4c27d17720dd3b155b56c111fb4a38ae
25
+ #6 resolve docker.io/library/python:3.10-slim@sha256:2ee0fb8794bf82af1b2db168ada5869b4c27d17720dd3b155b56c111fb4a38ae 0.2s done
26
+ #6 DONE 0.2s
27
+
28
+ #5 [internal] load build context
29
+ #5 transferring context: 8.73kB 1.0s done
30
+ #5 DONE 1.0s
31
+
32
+ #7 [3/6] WORKDIR /app
33
+ #7 CACHED
34
+
35
+ #8 [2/6] RUN apt-get update && apt-get install -y build-essential pkg-config libsystemd-dev libcairo2-dev tesseract-ocr libglib2.0-0 libsm6 libxrender1 libxext6 poppler-utils gettext && rm -rf /var/lib/apt/lists/*
36
+ #8 CACHED
37
+
38
+ #9 [4/6] COPY requirements.txt .
39
+ #9 CACHED
40
+
41
+ #10 [5/6] RUN pip install --upgrade pip && pip install torch==2.6.0 --no-cache-dir && pip install -r requirements.txt --no-cache-dir
42
+ #10 8.828 Requirement already satisfied: pip in /usr/local/lib/python3.10/site-packages (23.0.1)
43
+ #10 9.428 Collecting pip
44
+ #10 9.705 Downloading pip-25.1.1-py3-none-any.whl (1.8 MB)
45
+ #10 10.51 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 2.3 MB/s eta 0:00:00
46
+ #10 10.58 Installing collected packages: pip
47
+ #10 10.58 Attempting uninstall: pip
48
+ #10 10.59 Found existing installation: pip 23.0.1
49
+ #10 10.76 Uninstalling pip-23.0.1:
50
+ #10 11.69 Successfully uninstalled pip-23.0.1
51
+ #10 13.90 Successfully installed pip-25.1.1
52
+ #10 13.90 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
53
+ #10 15.67 Collecting torch==2.6.0
54
+ #10 15.87 Downloading torch-2.6.0-cp310-cp310-manylinux1_x86_64.whl.metadata (28 kB)
55
+ #10 15.99 Collecting filelock (from torch==2.6.0)
56
+ #10 16.15 Downloading filelock-3.18.0-py3-none-any.whl.metadata (2.9 kB)
57
+ #10 16.22 Collecting typing-extensions>=4.10.0 (from torch==2.6.0)
58
+ #10 16.28 Downloading typing_extensions-4.14.0-py3-none-any.whl.metadata (3.0 kB)
59
+ #10 16.36 Collecting networkx (from torch==2.6.0)
60
+ #10 16.40 Downloading networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
61
+ #10 16.47 Collecting jinja2 (from torch==2.6.0)
62
+ #10 16.51 Downloading jinja2-3.1.6-py3-none-any.whl.metadata (2.9 kB)
63
+ #10 16.58 Collecting fsspec (from torch==2.6.0)
64
+ #10 16.62 Downloading fsspec-2025.5.1-py3-none-any.whl.metadata (11 kB)
65
+ #10 16.72 Collecting nvidia-cuda-nvrtc-cu12==12.4.127 (from torch==2.6.0)
66
+ #10 16.76 Downloading nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
67
+ #10 16.82 Collecting nvidia-cuda-runtime-cu12==12.4.127 (from torch==2.6.0)
68
+ #10 16.87 Downloading nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
69
+ #10 16.93 Collecting nvidia-cuda-cupti-cu12==12.4.127 (from torch==2.6.0)
70
+ #10 16.96 Downloading nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)
71
+ #10 17.03 Collecting nvidia-cudnn-cu12==9.1.0.70 (from torch==2.6.0)
72
+ #10 17.07 Downloading nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)
73
+ #10 17.13 Collecting nvidia-cublas-cu12==12.4.5.8 (from torch==2.6.0)
74
+ #10 17.17 Downloading nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
75
+ #10 17.23 Collecting nvidia-cufft-cu12==11.2.1.3 (from torch==2.6.0)
76
+ #10 17.28 Downloading nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
77
+ #10 17.34 Collecting nvidia-curand-cu12==10.3.5.147 (from torch==2.6.0)
78
+ #10 17.38 Downloading nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
79
+ #10 17.43 Collecting nvidia-cusolver-cu12==11.6.1.9 (from torch==2.6.0)
80
+ #10 17.52 Downloading nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)
81
+ #10 17.58 Collecting nvidia-cusparse-cu12==12.3.1.170 (from torch==2.6.0)
82
+ #10 17.62 Downloading nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl.metadata (1.6 kB)
83
+ #10 17.67 Collecting nvidia-cusparselt-cu12==0.6.2 (from torch==2.6.0)
84
+ #10 17.71 Downloading nvidia_cusparselt_cu12-0.6.2-py3-none-manylinux2014_x86_64.whl.metadata (6.8 kB)
85
+ #10 17.77 Collecting nvidia-nccl-cu12==2.21.5 (from torch==2.6.0)
86
+ #10 17.80 Downloading nvidia_nccl_cu12-2.21.5-py3-none-manylinux2014_x86_64.whl.metadata (1.8 kB)
87
+ #10 17.86 Collecting nvidia-nvtx-cu12==12.4.127 (from torch==2.6.0)
88
+ #10 17.90 Downloading nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.7 kB)
89
+ #10 17.97 Collecting nvidia-nvjitlink-cu12==12.4.127 (from torch==2.6.0)
90
+ #10 18.03 Downloading nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl.metadata (1.5 kB)
91
+ #10 18.14 Collecting triton==3.2.0 (from torch==2.6.0)
92
+ #10 18.18 Downloading triton-3.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.4 kB)
93
+ #10 18.24 Collecting sympy==1.13.1 (from torch==2.6.0)
94
+ #10 18.28 Downloading sympy-1.13.1-py3-none-any.whl.metadata (12 kB)
95
+ #10 18.36 Collecting mpmath<1.4,>=1.1.0 (from sympy==1.13.1->torch==2.6.0)
96
+ #10 18.40 Downloading mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
97
+ #10 18.54 Collecting MarkupSafe>=2.0 (from jinja2->torch==2.6.0)
98
+ #10 18.57 Downloading MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
99
+ #10 18.62 Downloading torch-2.6.0-cp310-cp310-manylinux1_x86_64.whl (766.7 MB)
requirements.txt CHANGED
@@ -1,291 +1,18 @@
1
- absl-py==2.1.0
2
- accelerate==1.4.0
3
- aiohappyeyeballs==2.5.0
4
- aiohttp==3.11.13
5
- aiosignal==1.3.2
6
- amqp==5.3.1
7
- annotated-types==0.7.0
8
- anyio==4.8.0
9
- appdirs==1.4.4
10
- asgiref==3.8.1
11
- astunparse==1.6.3
12
- async-timeout==4.0.3
13
- attrs==25.1.0
14
- audioread==3.0.1
15
- autoawq==0.2.8
16
- backoff==2.2.1
17
- bcrypt==3.2.0
18
- billiard==4.2.1
19
- bitsandbytes==0.45.3
20
- blinker==1.9.0
21
- blis==0.7.11
22
- boilerpy3==1.0.7
23
- catalogue==2.0.10
24
- cattrs==24.1.2
25
- celery==5.4.0
26
- certifi==2020.6.20
27
- cffi==1.17.1
28
- chardet==4.0.0
29
- charset-normalizer==3.4.1
30
- click==8.1.8
31
- click-didyoumean==0.3.1
32
- click-plugins==1.1.1
33
- click-repl==0.3.0
34
- cloudpathlib==0.21.0
35
- colorama==0.4.4
36
- coloredlogs==15.0.1
37
- confection==0.1.5
38
- construct==2.5.3
39
- cryptography==44.0.1
40
- cymem==2.0.11
41
- Cython==3.0.11
42
- dataclasses-json==0.6.7
43
- datasets==3.3.2
44
- dbus-python==1.2.18
45
- debugpy==1.8.13
46
- decorator==5.2.1
47
- defer==1.0.4
48
- Deprecated==1.2.18
49
- dill==0.3.8
50
- distro==1.7.0
51
- distro-info==1.0
52
- docopt==0.6.2
53
- duplicity==3.0.4.0
54
- en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl
55
- evaluate==0.4.3
56
- Events==0.5
57
- exceptiongroup==1.2.2
58
- faiss-cpu==1.10.0
59
- fasteners==0.19
60
- filelock==3.17.0
61
- Flask==3.1.0
62
- flask-cors==5.0.1
63
- Flask-Executor==1.0.0
64
- Flask-Limiter==3.12
65
- flatbuffers==25.2.10
66
- frozenlist==1.5.0
67
- fsspec==2024.12.0
68
- future==0.18.2
69
- gast==0.6.0
70
- google-pasta==0.2.0
71
- greenlet==3.1.1
72
- grpcio==1.71.0
73
- h11==0.14.0
74
- h5py==3.13.0
75
- haystack==0.42
76
- hf-xet==1.1.1
77
- httpcore==1.0.7
78
- httplib2==0.20.2
79
- httpx==0.28.1
80
- httpx-sse==0.4.0
81
- huggingface-hub==0.31.1
82
- humanfriendly==10.0
83
- idna==3.3
84
- importlib-metadata==4.6.4
85
- inflect==7.5.0
86
- iniconfig==2.1.0
87
- itsdangerous==2.2.0
88
- jeepney==0.7.1
89
- Jinja2==3.1.5
90
- joblib==1.4.2
91
- json5==0.12.0
92
- jsonpatch==1.33
93
- jsonpointer==3.0.0
94
- jsonschema==4.23.0
95
- jsonschema-specifications==2024.10.1
96
- keras==3.9.0
97
- keyring==23.5.0
98
- kombu==5.4.2
99
- langchain==0.3.20
100
- langchain-community==0.3.19
101
- langchain-core==0.3.43
102
- langchain-text-splitters==0.3.6
103
- langcodes==3.5.0
104
- langsmith==0.3.13
105
- language_data==1.3.0
106
- launchpadlib==1.10.16
107
- lazr.restfulclient==0.14.4
108
- lazr.uri==1.0.6
109
- lazy-imports==0.3.1
110
- lazy_loader==0.4
111
- libclang==18.1.1
112
- librosa==0.11.0
113
- limits==4.4.1
114
- llvmlite==0.44.0
115
- lockfile==0.12.2
116
- louis==1.3.0
117
- lxml==5.3.1
118
- Mako==1.1.3
119
- marisa-trie==1.2.1
120
- Markdown==3.7
121
- markdown-it-py==3.0.0
122
- MarkupSafe==3.0.2
123
- marshmallow==3.26.1
124
- mdurl==0.1.2
125
- medspacy==1.3.1
126
- medspacy-quickumls==3.2
127
- medspacy_unqlite==0.9.6
128
- ml_dtypes==0.5.1
129
- monotonic==1.6
130
- more-itertools==8.10.0
131
- mpmath==1.3.0
132
- msgpack==1.1.0
133
- multidict==6.1.0
134
- multiprocess==0.70.16
135
- murmurhash==1.0.12
136
- mypy-extensions==1.0.0
137
- namex==0.0.8
138
- netifaces==0.11.0
139
- networkx==3.4.2
140
- nltk==3.9.1
141
- num2words==0.5.14
142
- numba==0.61.0
143
- numpy==1.26.4
144
- nvidia-cublas-cu12==12.4.5.8
145
- nvidia-cuda-cupti-cu12==12.4.127
146
- nvidia-cuda-nvrtc-cu12==12.4.127
147
- nvidia-cuda-runtime-cu12==12.4.127
148
- nvidia-cudnn-cu12==9.1.0.70
149
- nvidia-cufft-cu12==11.2.1.3
150
- nvidia-curand-cu12==10.3.5.147
151
- nvidia-cusolver-cu12==11.6.1.9
152
- nvidia-cusparse-cu12==12.3.1.170
153
- nvidia-cusparselt-cu12==0.6.2
154
- nvidia-nccl-cu12==2.21.5
155
- nvidia-nvjitlink-cu12==12.4.127
156
- nvidia-nvtx-cu12==12.4.127
157
- oauthlib==3.2.0
158
- olefile==0.46
159
- onnx==1.17.0
160
- onnxruntime==1.20.1
161
- openai-whisper==20240930
162
- opencv-python==4.11.0.86
163
- opt_einsum==3.4.0
164
- optimum==1.24.0
165
- optree==0.14.1
166
- ordered-set==4.1.0
167
- orjson==3.10.15
168
- packaging==24.2
169
- pandas==2.2.3
170
- paramiko==2.9.3
171
- pdf2image==1.17.0
172
- pdfminer.six==20231228
173
- pdfplumber==0.11.5
174
- pefile==2024.8.26
175
- pexpect==4.8.0
176
- pillow==11.1.0
177
- pinecone==6.0.1
178
- pinecone-plugin-interface==0.0.7
179
- platformdirs==4.3.6
180
- pluggy==1.5.0
181
- pooch==1.8.2
182
- posthog==3.19.0
183
- preshed==3.0.9
184
- prompt_toolkit==3.0.50
185
- prompthub-py==4.0.0
186
- propcache==0.3.0
187
- protobuf==5.29.3
188
- psutil==7.0.0
189
- ptyprocess==0.7.0
190
- py4j==0.10.9.7
191
- pyarrow==19.0.1
192
- pycairo==1.20.1
193
- pycparser==2.22
194
- pycups==2.0.1
195
- pydantic==2.10.6
196
- pydantic-settings==2.8.1
197
- pydantic_core==2.27.2
198
- pydub==0.25.1
199
- PyFastNER==1.0.10
200
- Pygments==2.19.1
201
- PyGObject==3.42.1
202
- PyJWT==2.3.0
203
- pymacaroons==0.13.0
204
- PyNaCl==1.5.0
205
- pyparsing==2.4.7
206
- PyPDF2==3.0.1
207
- pypdfium2==4.30.1
208
- pyRFC3339==1.1
209
- PyRuSH==1.0.9
210
- pysbd==0.3.4
211
- pysimstring==1.3.0
212
- pyspark==3.5.5
213
- pytesseract==0.3.13
214
- pytest==8.3.5
215
- python-docx==1.1.2
216
- python-dotenv==1.0.1
217
- python-ptrace==0.9.9
218
- pytz==2022.1
219
- pyxdg==0.27
220
- PyYAML==6.0.2
221
- quantulum3==0.9.2
222
- quicksectx==0.4.0
223
- rank-bm25==0.2.2
224
- referencing==0.36.2
225
- regex==2024.11.6
226
- reportlab==3.6.8
227
- requests==2.32.3
228
- requests-cache==0.9.8
229
- requests-toolbelt==1.0.0
230
- rich==13.9.4
231
- rpds-py==0.23.1
232
- sacremoses==0.1.1
233
- safetensors==0.5.2
234
- scikit-learn==1.6.1
235
- scipy==1.15.2
236
- SecretStorage==3.3.1
237
- sentence-transformers==3.4.1
238
- sentencepiece==0.2.0
239
- shellingham==1.5.4
240
- six==1.16.0
241
- smart-open==7.1.0
242
- sniffio==1.3.1
243
- soundfile==0.13.1
244
- soxr==0.5.0.post1
245
- spacy==3.7.5
246
- spacy-legacy==3.0.12
247
- spacy-loggers==1.0.5
248
- spark-nlp==5.5.3
249
- sparknlp==1.0.0
250
- SQLAlchemy==2.0.38
251
- srsly==2.5.1
252
- sseclient-py==1.8.0
253
- ssh-import-id==5.11
254
- sympy==1.13.1
255
- systemd-python==234
256
- tenacity==9.0.0
257
- tensorboard==2.19.0
258
- tensorboard-data-server==0.7.2
259
- tensorflow==2.19.0
260
- tensorflow-io-gcs-filesystem==0.37.1
261
- termcolor==2.5.0
262
- tf_keras==2.19.0
263
- thinc==8.2.5
264
- threadpoolctl==3.5.0
265
- tiktoken==0.9.0
266
- tokenizers==0.21.0
267
- tomli==2.2.1
268
  torch==2.6.0
269
- torchaudio==2.6.0
270
- torchvision==0.21.0
271
- tqdm==4.67.1
272
- transformers==4.47.1
273
- triton==3.2.0
274
- typeguard==4.4.2
275
- typer==0.15.3
276
- typing-inspect==0.9.0
277
- typing_extensions==4.12.2
278
- tzdata==2025.1
279
- Unidecode==1.4.0
280
- url-normalize==1.4.3
281
- urllib3==1.26.5
282
- vine==5.1.0
283
- wasabi==1.1.3
284
- wcwidth==0.2.13
285
- weasel==0.4.1
286
- Werkzeug==3.1.3
287
- wrapt==1.17.2
288
- xxhash==3.5.0
289
- yarl==1.18.3
290
- zipp==3.17.0
291
- zstandard==0.23.0
 
1
+ flask
2
+ flask-cors
3
+ werkzeug
4
+ transformers
5
+ whisper
6
+ python-dotenv
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  torch==2.6.0
8
+ pillow
9
+ pdf2image
10
+ python-docx
11
+ openpyxl
12
+ pytesseract
13
+ scikit-learn
14
+ scipy
15
+ pandas
16
+ numpy
17
+ pdfplumber
18
+ opencv-python