Spaces:
Sleeping
Sleeping
lgfunderburk
commited on
Commit
•
d05ba06
1
Parent(s):
280f26e
run app with requirements
Browse files- Dockerfile +2 -13
- pyproject.toml +0 -2
- requirements.txt +6 -372
Dockerfile
CHANGED
@@ -21,23 +21,12 @@ COPY --chown=user . $HOME/app
|
|
21 |
# Copy requirements file
|
22 |
COPY ./requirements.txt ~/app/requirements.txt
|
23 |
|
24 |
-
# Copy poetry configuration files
|
25 |
-
COPY pyproject.toml /app/
|
26 |
-
|
27 |
# Upgrade pip and install poetry
|
28 |
RUN pip install --upgrade pip
|
29 |
-
RUN pip install
|
30 |
-
|
31 |
-
# Set environment variable to create a virtual environment within the project directory
|
32 |
-
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
33 |
-
|
34 |
-
# Lock and install project dependencies using poetry
|
35 |
-
RUN poetry lock
|
36 |
-
RUN poetry install
|
37 |
-
RUN pip install farm-haystack[faiss]
|
38 |
|
39 |
# Copy the rest of the application code
|
40 |
COPY . .
|
41 |
|
42 |
# Define the command to run the app
|
43 |
-
CMD [
|
|
|
21 |
# Copy requirements file
|
22 |
COPY ./requirements.txt ~/app/requirements.txt
|
23 |
|
|
|
|
|
|
|
24 |
# Upgrade pip and install poetry
|
25 |
RUN pip install --upgrade pip
|
26 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
# Copy the rest of the application code
|
29 |
COPY . .
|
30 |
|
31 |
# Define the command to run the app
|
32 |
+
CMD [ "chainlit", "run", "app.py", "--port", "7860"]
|
pyproject.toml
CHANGED
@@ -11,8 +11,6 @@ python = "^3.10"
|
|
11 |
farm-haystack = {extras = ["faiss"], version = "^1.21.2"}
|
12 |
chainlit = "^0.7.0"
|
13 |
openai = "^0.28.0"
|
14 |
-
jupyter = "^1.0.0"
|
15 |
-
ipykernel = "^6.25.2"
|
16 |
python-dotenv = "^1.0.0"
|
17 |
datasets = "^2.14.5"
|
18 |
nltk = "^3.8.1"
|
|
|
11 |
farm-haystack = {extras = ["faiss"], version = "^1.21.2"}
|
12 |
chainlit = "^0.7.0"
|
13 |
openai = "^0.28.0"
|
|
|
|
|
14 |
python-dotenv = "^1.0.0"
|
15 |
datasets = "^2.14.5"
|
16 |
nltk = "^3.8.1"
|
requirements.txt
CHANGED
@@ -1,372 +1,6 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
anaconda-project==0.11.1
|
8 |
-
anyio==3.5.0
|
9 |
-
appdirs==1.4.4
|
10 |
-
applaunchservices==0.3.0
|
11 |
-
appnope==0.1.2
|
12 |
-
appscript==1.1.2
|
13 |
-
argon2-cffi==21.3.0
|
14 |
-
argon2-cffi-bindings==21.2.0
|
15 |
-
arrow==1.2.3
|
16 |
-
astroid==2.14.2
|
17 |
-
astropy==5.1
|
18 |
-
asttokens==2.0.5
|
19 |
-
async-timeout==4.0.2
|
20 |
-
atomicwrites==1.4.0
|
21 |
-
attrs==22.1.0
|
22 |
-
Automat==20.2.0
|
23 |
-
autopep8==1.6.0
|
24 |
-
Babel==2.11.0
|
25 |
-
backcall==0.2.0
|
26 |
-
backoff==2.2.1
|
27 |
-
backports.functools-lru-cache==1.6.4
|
28 |
-
backports.tempfile==1.0
|
29 |
-
backports.weakref==1.0.post1
|
30 |
-
bcrypt==3.2.0
|
31 |
-
beautifulsoup4==4.11.1
|
32 |
-
binaryornot==0.4.4
|
33 |
-
bitsandbytes==0.38.1
|
34 |
-
black==22.6.0
|
35 |
-
bleach==4.1.0
|
36 |
-
bokeh==2.4.3
|
37 |
-
Bottleneck==1.3.5
|
38 |
-
brotlipy==0.7.0
|
39 |
-
build==0.10.0
|
40 |
-
CacheControl==0.13.1
|
41 |
-
certifi==2022.12.7
|
42 |
-
cffi==1.15.1
|
43 |
-
chardet==4.0.0
|
44 |
-
charset-normalizer==2.0.4
|
45 |
-
cleo==2.0.1
|
46 |
-
click==8.0.4
|
47 |
-
cloudpickle==2.0.0
|
48 |
-
clyent==1.2.2
|
49 |
-
colorama==0.4.6
|
50 |
-
colorcet==3.0.1
|
51 |
-
comm==0.1.2
|
52 |
-
conda==23.1.0
|
53 |
-
conda-build==3.23.3
|
54 |
-
conda-content-trust==0.1.3
|
55 |
-
conda-pack==0.6.0
|
56 |
-
conda-package-handling==2.0.2
|
57 |
-
conda_package_streaming==0.7.0
|
58 |
-
conda-repo-cli==1.0.27
|
59 |
-
conda-token==0.4.0
|
60 |
-
conda-verify==3.4.2
|
61 |
-
constantly==15.1.0
|
62 |
-
contourpy==1.0.5
|
63 |
-
cookiecutter==1.7.3
|
64 |
-
crashtest==0.4.1
|
65 |
-
cryptography==39.0.1
|
66 |
-
cssselect==1.1.0
|
67 |
-
cycler==0.11.0
|
68 |
-
cytoolz==0.12.0
|
69 |
-
dask==2022.7.0
|
70 |
-
datasets==2.11.0
|
71 |
-
datashader==0.14.4
|
72 |
-
datashape==0.5.4
|
73 |
-
debugpy==1.5.1
|
74 |
-
decorator==5.1.1
|
75 |
-
defusedxml==0.7.1
|
76 |
-
diff-match-patch==20200713
|
77 |
-
dill==0.3.6
|
78 |
-
distlib==0.3.7
|
79 |
-
distributed==2022.7.0
|
80 |
-
docstring-to-markdown==0.11
|
81 |
-
docutils==0.18.1
|
82 |
-
duckdb==0.7.1
|
83 |
-
duckdb-engine==0.7.0
|
84 |
-
dulwich==0.21.6
|
85 |
-
entrypoints==0.4
|
86 |
-
et-xmlfile==1.1.0
|
87 |
-
executing==0.8.3
|
88 |
-
fastjsonschema==2.16.2
|
89 |
-
filelock==3.12.4
|
90 |
-
flake8==6.0.0
|
91 |
-
Flask==2.2.2
|
92 |
-
flit_core==3.6.0
|
93 |
-
fonttools==4.25.0
|
94 |
-
frozenlist==1.3.3
|
95 |
-
fsspec==2022.11.0
|
96 |
-
future==0.18.3
|
97 |
-
gensim==4.3.0
|
98 |
-
glob2==0.7
|
99 |
-
gmpy2==2.1.2
|
100 |
-
greenlet==2.0.1
|
101 |
-
h5py==3.7.0
|
102 |
-
HeapDict==1.0.1
|
103 |
-
holoviews==1.15.4
|
104 |
-
huggingface-hub==0.14.1
|
105 |
-
hvplot==0.8.2
|
106 |
-
hyperlink==21.0.0
|
107 |
-
idna==3.4
|
108 |
-
imagecodecs==2021.8.26
|
109 |
-
imageio==2.26.0
|
110 |
-
imagesize==1.4.1
|
111 |
-
imbalanced-learn==0.10.1
|
112 |
-
importlib-metadata==6.8.0
|
113 |
-
incremental==21.3.0
|
114 |
-
inflection==0.5.1
|
115 |
-
iniconfig==1.1.1
|
116 |
-
installer==0.7.0
|
117 |
-
intake==0.6.7
|
118 |
-
intervaltree==3.1.0
|
119 |
-
invoke==2.0.0
|
120 |
-
ipykernel==6.19.2
|
121 |
-
ipython==8.10.0
|
122 |
-
ipython-genutils==0.2.0
|
123 |
-
ipywidgets==7.6.5
|
124 |
-
isort==5.9.3
|
125 |
-
itemadapter==0.3.0
|
126 |
-
itemloaders==1.0.4
|
127 |
-
itsdangerous==2.0.1
|
128 |
-
jaraco.classes==3.3.0
|
129 |
-
jedi==0.18.1
|
130 |
-
jellyfish==0.9.0
|
131 |
-
Jinja2==3.1.2
|
132 |
-
jinja2-time==0.2.0
|
133 |
-
jmespath==0.10.0
|
134 |
-
joblib==1.1.1
|
135 |
-
json5==0.9.6
|
136 |
-
jsonschema==4.17.3
|
137 |
-
jupysql==0.9.0
|
138 |
-
jupysql-plugin==0.1.2
|
139 |
-
jupyter==1.0.0
|
140 |
-
jupyter_client==7.3.4
|
141 |
-
jupyter-console==6.6.2
|
142 |
-
jupyter_core==5.2.0
|
143 |
-
jupyter-server==1.23.4
|
144 |
-
jupyterlab==3.5.3
|
145 |
-
jupyterlab-pygments==0.1.2
|
146 |
-
jupyterlab_server==2.19.0
|
147 |
-
jupyterlab-widgets==1.0.0
|
148 |
-
jupytext==1.14.5
|
149 |
-
keyring==24.2.0
|
150 |
-
kiwisolver==1.4.4
|
151 |
-
lazy-object-proxy==1.6.0
|
152 |
-
libarchive-c==2.9
|
153 |
-
llvmlite==0.39.1
|
154 |
-
locket==1.0.0
|
155 |
-
loralib==0.1.1
|
156 |
-
lxml==4.9.1
|
157 |
-
lz4==3.1.3
|
158 |
-
Markdown==3.4.1
|
159 |
-
markdown-it-py==2.2.0
|
160 |
-
MarkupSafe==2.1.1
|
161 |
-
matplotlib==3.7.0
|
162 |
-
matplotlib-inline==0.1.6
|
163 |
-
mccabe==0.7.0
|
164 |
-
mdit-py-plugins==0.3.5
|
165 |
-
mdurl==0.1.2
|
166 |
-
mistune==0.8.4
|
167 |
-
mock==4.0.3
|
168 |
-
monotonic==1.6
|
169 |
-
more-itertools==10.1.0
|
170 |
-
mpmath==1.2.1
|
171 |
-
msgpack==1.0.3
|
172 |
-
multidict==6.0.4
|
173 |
-
multipledispatch==0.6.0
|
174 |
-
multiprocess==0.70.14
|
175 |
-
munkres==1.1.4
|
176 |
-
mypy-extensions==0.4.3
|
177 |
-
navigator-updater==0.3.0
|
178 |
-
nbclassic==0.5.2
|
179 |
-
nbclient==0.5.13
|
180 |
-
nbconvert==6.5.4
|
181 |
-
nbformat==5.7.0
|
182 |
-
nbqa==1.6.4
|
183 |
-
nest-asyncio==1.5.6
|
184 |
-
networkx==2.8.4
|
185 |
-
nltk==3.7
|
186 |
-
notebook==6.5.2
|
187 |
-
notebook_shim==0.2.2
|
188 |
-
numba==0.56.4
|
189 |
-
numexpr==2.8.4
|
190 |
-
numpy==1.23.5
|
191 |
-
numpydoc==1.5.0
|
192 |
-
openpyxl==3.0.10
|
193 |
-
packaging==22.0
|
194 |
-
pandas==1.5.3
|
195 |
-
pandocfilters==1.5.0
|
196 |
-
panel==0.14.3
|
197 |
-
param==1.12.3
|
198 |
-
parsel==1.6.0
|
199 |
-
parso==0.8.3
|
200 |
-
partd==1.2.0
|
201 |
-
pathlib==1.0.1
|
202 |
-
pathspec==0.10.3
|
203 |
-
patsy==0.5.3
|
204 |
-
peft==0.3.0.dev0
|
205 |
-
pep8==1.7.1
|
206 |
-
pexpect==4.8.0
|
207 |
-
pickleshare==0.7.5
|
208 |
-
Pillow==9.4.0
|
209 |
-
pip==22.3.1
|
210 |
-
pkginfo==1.9.6
|
211 |
-
pkgmt==0.2.5
|
212 |
-
platformdirs==3.11.0
|
213 |
-
ploomber-core==0.2.9
|
214 |
-
plotly==5.9.0
|
215 |
-
pluggy==1.0.0
|
216 |
-
ply==3.11
|
217 |
-
poetry==1.6.1
|
218 |
-
poetry-core==1.7.0
|
219 |
-
poetry-plugin-export==1.5.0
|
220 |
-
pooch==1.4.0
|
221 |
-
posthog==2.4.2
|
222 |
-
poyo==0.5.0
|
223 |
-
prettytable==3.6.0
|
224 |
-
prometheus-client==0.14.1
|
225 |
-
prompt-toolkit==3.0.36
|
226 |
-
Protego==0.1.16
|
227 |
-
psutil==5.9.0
|
228 |
-
ptyprocess==0.7.0
|
229 |
-
pure-eval==0.2.2
|
230 |
-
py==1.11.0
|
231 |
-
pyarrow==11.0.0
|
232 |
-
pyasn1==0.4.8
|
233 |
-
pyasn1-modules==0.2.8
|
234 |
-
pycodestyle==2.10.0
|
235 |
-
pycosat==0.6.4
|
236 |
-
pycparser==2.21
|
237 |
-
pyct==0.5.0
|
238 |
-
pycurl==7.45.1
|
239 |
-
PyDispatcher==2.0.5
|
240 |
-
pydocstyle==6.3.0
|
241 |
-
pyerfa==2.0.0
|
242 |
-
pyflakes==3.0.1
|
243 |
-
Pygments==2.11.2
|
244 |
-
PyHamcrest==2.0.2
|
245 |
-
PyJWT==2.4.0
|
246 |
-
pylint==2.16.2
|
247 |
-
pylint-venv==2.3.0
|
248 |
-
pyls-spyder==0.4.0
|
249 |
-
pyobjc-core==9.0
|
250 |
-
pyobjc-framework-Cocoa==9.0
|
251 |
-
pyobjc-framework-CoreServices==9.0
|
252 |
-
pyobjc-framework-FSEvents==9.0
|
253 |
-
pyodbc==4.0.34
|
254 |
-
pyOpenSSL==23.0.0
|
255 |
-
pyparsing==3.0.9
|
256 |
-
pyproject_hooks==1.0.0
|
257 |
-
PyQt5-sip==12.11.0
|
258 |
-
pyrsistent==0.18.0
|
259 |
-
PySocks==1.7.1
|
260 |
-
pytest==7.1.2
|
261 |
-
python-dateutil==2.8.2
|
262 |
-
python-lsp-black==1.2.1
|
263 |
-
python-lsp-jsonrpc==1.0.0
|
264 |
-
python-lsp-server==1.7.1
|
265 |
-
python-slugify==5.0.2
|
266 |
-
python-snappy==0.6.1
|
267 |
-
pytoolconfig==1.2.5
|
268 |
-
pytz==2022.7
|
269 |
-
pyviz-comms==2.0.2
|
270 |
-
PyWavelets==1.4.1
|
271 |
-
PyYAML==6.0
|
272 |
-
pyzmq==23.2.0
|
273 |
-
QDarkStyle==3.0.2
|
274 |
-
qstylizer==0.2.2
|
275 |
-
QtAwesome==1.2.2
|
276 |
-
qtconsole==5.4.0
|
277 |
-
QtPy==2.2.0
|
278 |
-
queuelib==1.5.0
|
279 |
-
rapidfuzz==2.15.2
|
280 |
-
regex==2022.7.9
|
281 |
-
requests==2.28.1
|
282 |
-
requests-file==1.5.1
|
283 |
-
requests-toolbelt==1.0.0
|
284 |
-
responses==0.18.0
|
285 |
-
rope==1.7.0
|
286 |
-
Rtree==1.0.1
|
287 |
-
ruamel.yaml==0.17.21
|
288 |
-
ruamel.yaml.clib==0.2.6
|
289 |
-
ruamel-yaml-conda==0.17.21
|
290 |
-
scikit-image==0.19.3
|
291 |
-
scikit-learn==1.2.1
|
292 |
-
scipy==1.10.0
|
293 |
-
Scrapy==2.8.0
|
294 |
-
seaborn==0.12.2
|
295 |
-
Send2Trash==1.8.0
|
296 |
-
service-identity==18.1.0
|
297 |
-
setuptools==65.6.3
|
298 |
-
shellingham==1.5.3
|
299 |
-
sip==6.6.2
|
300 |
-
six==1.16.0
|
301 |
-
smart-open==5.2.1
|
302 |
-
sniffio==1.2.0
|
303 |
-
snowballstemmer==2.2.0
|
304 |
-
sortedcontainers==2.4.0
|
305 |
-
soupsieve==2.3.2.post1
|
306 |
-
Sphinx==5.0.2
|
307 |
-
sphinxcontrib-applehelp==1.0.2
|
308 |
-
sphinxcontrib-devhelp==1.0.2
|
309 |
-
sphinxcontrib-htmlhelp==2.0.0
|
310 |
-
sphinxcontrib-jsmath==1.0.1
|
311 |
-
sphinxcontrib-qthelp==1.0.3
|
312 |
-
sphinxcontrib-serializinghtml==1.1.5
|
313 |
-
spyder==5.4.1
|
314 |
-
spyder-kernels==2.4.1
|
315 |
-
SQLAlchemy==1.4.39
|
316 |
-
sqlglot==11.5.1
|
317 |
-
sqlparse==0.4.3
|
318 |
-
stack-data==0.2.0
|
319 |
-
statsmodels==0.13.5
|
320 |
-
sympy==1.11.1
|
321 |
-
tables==3.7.0
|
322 |
-
tabulate==0.8.10
|
323 |
-
TBB==0.2
|
324 |
-
tblib==1.7.0
|
325 |
-
tenacity==8.0.1
|
326 |
-
terminado==0.17.1
|
327 |
-
text-unidecode==1.3
|
328 |
-
textdistance==4.2.1
|
329 |
-
threadpoolctl==2.2.0
|
330 |
-
three-merge==0.1.1
|
331 |
-
tifffile==2021.7.2
|
332 |
-
tinycss2==1.2.1
|
333 |
-
tldextract==3.2.0
|
334 |
-
tokenize-rt==5.0.0
|
335 |
-
tokenizers==0.11.4
|
336 |
-
toml==0.10.2
|
337 |
-
tomli==2.0.1
|
338 |
-
tomlkit==0.12.1
|
339 |
-
toolz==0.12.0
|
340 |
-
torch==2.0.0
|
341 |
-
tornado==6.1
|
342 |
-
tqdm==4.64.1
|
343 |
-
traitlets==5.7.1
|
344 |
-
transformers==4.29.0.dev0
|
345 |
-
trove-classifiers==2023.9.19
|
346 |
-
Twisted==22.2.0
|
347 |
-
typing_extensions==4.4.0
|
348 |
-
ujson==5.4.0
|
349 |
-
Unidecode==1.2.0
|
350 |
-
urllib3==1.26.14
|
351 |
-
virtualenv==20.24.5
|
352 |
-
w3lib==1.21.0
|
353 |
-
watchdog==2.1.6
|
354 |
-
wcwidth==0.2.5
|
355 |
-
webencodings==0.5.1
|
356 |
-
websocket-client==0.58.0
|
357 |
-
Werkzeug==2.2.2
|
358 |
-
whatthepatch==1.0.2
|
359 |
-
wheel==0.38.4
|
360 |
-
widgetsnbextension==3.5.2
|
361 |
-
wrapt==1.14.1
|
362 |
-
wurlitzer==3.0.2
|
363 |
-
xarray==2022.11.0
|
364 |
-
xattr==0.10.1
|
365 |
-
xlwings==0.29.1
|
366 |
-
xxhash==3.2.0
|
367 |
-
yapf==0.31.0
|
368 |
-
yarl==1.9.2
|
369 |
-
zict==2.1.0
|
370 |
-
zipp==3.11.0
|
371 |
-
zope.interface==5.4.0
|
372 |
-
zstandard==0.19.0
|
|
|
1 |
+
farm-haystack[faiss]
|
2 |
+
chainlit==0.7.0
|
3 |
+
openai==0.28.0
|
4 |
+
python-dotenv==1.0.0
|
5 |
+
datasets==2.14.5
|
6 |
+
nltk==3.8.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|