update setup.py, added requirements.txt
Browse files- app.py +1 -1
- requirements.txt +95 -0
- setup.py +5 -4
app.py
CHANGED
@@ -8,7 +8,7 @@ def display(search_request, search_result) :
|
|
8 |
|
9 |
# lorax = Image.open('img/Lorax.jpg')
|
10 |
# print(lorax.width, lorax.height)
|
11 |
-
st.image(lorax, width = 250)
|
12 |
|
13 |
st.header("\"" +search_request+ "\" reminds me of :")
|
14 |
i = 0
|
|
|
8 |
|
9 |
# lorax = Image.open('img/Lorax.jpg')
|
10 |
# print(lorax.width, lorax.height)
|
11 |
+
# st.image(lorax, width = 250)
|
12 |
|
13 |
st.header("\"" +search_request+ "\" reminds me of :")
|
14 |
i = 0
|
requirements.txt
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiohttp==3.8.4
|
2 |
+
aiosignal==1.3.1
|
3 |
+
appnope==0.1.3
|
4 |
+
asttokens==2.2.1
|
5 |
+
async-timeout==4.0.2
|
6 |
+
attrs==23.1.0
|
7 |
+
backcall==0.2.0
|
8 |
+
certifi==2023.5.7
|
9 |
+
charset-normalizer==3.1.0
|
10 |
+
comm==0.1.3
|
11 |
+
contourpy==1.1.0
|
12 |
+
cycler==0.11.0
|
13 |
+
datasets==2.12.0
|
14 |
+
debugpy==1.6.7
|
15 |
+
decorator==5.1.1
|
16 |
+
dill==0.3.6
|
17 |
+
dnspython==2.3.0
|
18 |
+
executing==1.2.0
|
19 |
+
faiss-cpu==1.7.4
|
20 |
+
filelock==3.12.2
|
21 |
+
fonttools==4.40.0
|
22 |
+
frozenlist==1.3.3
|
23 |
+
fsspec==2023.6.0
|
24 |
+
huggingface-hub==0.15.1
|
25 |
+
idna==3.4
|
26 |
+
imageio==2.31.1
|
27 |
+
importlib-metadata==6.6.0
|
28 |
+
importlib-resources==5.12.0
|
29 |
+
ipykernel==6.23.2
|
30 |
+
ipython==8.14.0
|
31 |
+
jedi==0.18.2
|
32 |
+
Jinja2==3.1.2
|
33 |
+
joblib==1.2.0
|
34 |
+
jupyter_client==8.2.0
|
35 |
+
jupyter_core==5.3.0
|
36 |
+
kiwisolver==1.4.4
|
37 |
+
lazy_loader==0.2
|
38 |
+
loguru==0.7.0
|
39 |
+
MarkupSafe==2.1.3
|
40 |
+
matplotlib==3.7.1
|
41 |
+
matplotlib-inline==0.1.6
|
42 |
+
mpmath==1.3.0
|
43 |
+
multidict==6.0.4
|
44 |
+
multiprocess==0.70.14
|
45 |
+
nest-asyncio==1.5.6
|
46 |
+
networkx==3.1
|
47 |
+
numpy==1.24.3
|
48 |
+
packaging==23.1
|
49 |
+
pandas==2.0.2
|
50 |
+
parso==0.8.3
|
51 |
+
pexpect==4.8.0
|
52 |
+
pickleshare==0.7.5
|
53 |
+
Pillow==9.5.0
|
54 |
+
pinecone-client==2.2.2
|
55 |
+
platformdirs==3.5.3
|
56 |
+
prompt-toolkit==3.0.38
|
57 |
+
psutil==5.9.5
|
58 |
+
ptyprocess==0.7.0
|
59 |
+
pure-eval==0.2.2
|
60 |
+
pyarrow==12.0.1
|
61 |
+
Pygments==2.15.1
|
62 |
+
pyparsing==3.0.9
|
63 |
+
python-dateutil==2.8.2
|
64 |
+
pytz==2023.3
|
65 |
+
PyWavelets==1.4.1
|
66 |
+
PyYAML==6.0
|
67 |
+
pyzmq==25.1.0
|
68 |
+
regex==2023.6.3
|
69 |
+
requests==2.31.0
|
70 |
+
responses==0.18.0
|
71 |
+
safetensors==0.3.1
|
72 |
+
scikit-image==0.21.0
|
73 |
+
scikit-learn==1.2.2
|
74 |
+
scipy==1.10.1
|
75 |
+
six==1.16.0
|
76 |
+
sklearn==0.0.post4
|
77 |
+
stack-data==0.6.2
|
78 |
+
sympy==1.12
|
79 |
+
threadpoolctl==3.1.0
|
80 |
+
tifffile==2023.4.12
|
81 |
+
tokenizers==0.13.3
|
82 |
+
torch==2.0.1
|
83 |
+
torchaudio==2.0.2
|
84 |
+
torchvision==0.15.2
|
85 |
+
tornado==6.3.2
|
86 |
+
tqdm==4.65.0
|
87 |
+
traitlets==5.9.0
|
88 |
+
transformers==4.30.2
|
89 |
+
typing_extensions==4.6.3
|
90 |
+
tzdata==2023.3
|
91 |
+
urllib3==2.0.3
|
92 |
+
wcwidth==0.2.6
|
93 |
+
xxhash==3.2.0
|
94 |
+
yarl==1.9.2
|
95 |
+
zipp==3.15.0
|
setup.py
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
|
5 |
-
from huggingface_hub import hf_hub_url, cached_download
|
6 |
-
from huggingface_hub.archive import unpack_archive
|
7 |
|
8 |
|
9 |
def downlad_images() :
|
@@ -11,7 +11,8 @@ def downlad_images() :
|
|
11 |
img_dir = 'flickr'
|
12 |
|
13 |
if not os.path.exists(img_dir) :
|
14 |
-
# os.makedirs(
|
|
|
15 |
# # Specify the Google Drive link to the archive file
|
16 |
# archive_url = 'https://drive.google.com/uc?id=14QhofCbby053kWbVeWEBHCxOROQS-bjN'
|
17 |
|
@@ -29,4 +30,4 @@ def downlad_images() :
|
|
29 |
# unpack_archive(destination_path, destination_dir)
|
30 |
# print(f"Archive unpacked to: {destination_dir}")
|
31 |
|
32 |
-
|
|
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
|
5 |
+
# from huggingface_hub import hf_hub_url, cached_download
|
6 |
+
# from huggingface_hub.archive import unpack_archive
|
7 |
|
8 |
|
9 |
def downlad_images() :
|
|
|
11 |
img_dir = 'flickr'
|
12 |
|
13 |
if not os.path.exists(img_dir) :
|
14 |
+
# os.makedirs(img_dir)
|
15 |
+
|
16 |
# # Specify the Google Drive link to the archive file
|
17 |
# archive_url = 'https://drive.google.com/uc?id=14QhofCbby053kWbVeWEBHCxOROQS-bjN'
|
18 |
|
|
|
30 |
# unpack_archive(destination_path, destination_dir)
|
31 |
# print(f"Archive unpacked to: {destination_dir}")
|
32 |
|
33 |
+
return
|