Shchushch commited on
Commit
c8eee91
1 Parent(s): 9926f63
Files changed (3) hide show
  1. LICENSE +21 -0
  2. app.py +2 -1
  3. packages.txt +211 -0
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Shchushch
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
app.py CHANGED
@@ -4,7 +4,8 @@ import random as rd
4
  import webbrowser as wb
5
  import numpy as np
6
  from find import find_similar,df,lems_eng,lems_rus,clean
7
-
 
8
  st.set_page_config(
9
  page_title="Умный поиск книг",
10
  page_icon="📖",
 
4
  import webbrowser as wb
5
  import numpy as np
6
  from find import find_similar,df,lems_eng,lems_rus,clean
7
+ import nltk
8
+ nltk.download('averaged_perceptron_tagger')
9
  st.set_page_config(
10
  page_title="Умный поиск книг",
11
  page_icon="📖",
packages.txt ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # packages in environment at /Users/evgeniyshchurkin/anaconda3/envs/faiss_env:
2
+ #
3
+ # Name Version Build Channel
4
+ aiohttp 3.8.5 py38hb192615_0 conda-forge
5
+ aiosignal 1.3.1 pyhd8ed1ab_0 conda-forge
6
+ altair 5.0.1 pyhd8ed1ab_1 conda-forge
7
+ appnope 0.1.3 pyhd8ed1ab_0 conda-forge
8
+ asttokens 2.2.1 pyhd8ed1ab_0 conda-forge
9
+ async-timeout 4.0.2 pyhd8ed1ab_0 conda-forge
10
+ attrs 23.1.0 pyh71513ae_1 conda-forge
11
+ aws-c-auth 0.7.0 hf4e22b4_2 conda-forge
12
+ aws-c-cal 0.6.0 h43a37b4_0 conda-forge
13
+ aws-c-common 0.8.23 hb547adb_0 conda-forge
14
+ aws-c-compression 0.2.17 h31a6291_1 conda-forge
15
+ aws-c-event-stream 0.3.1 h1e1aaf7_1 conda-forge
16
+ aws-c-http 0.7.11 h3107daf_0 conda-forge
17
+ aws-c-io 0.13.28 hf096fb3_0 conda-forge
18
+ aws-c-mqtt 0.8.14 h9418dbe_2 conda-forge
19
+ aws-c-s3 0.3.13 h79b0d72_2 conda-forge
20
+ aws-c-sdkutils 0.1.11 h31a6291_1 conda-forge
21
+ aws-checksums 0.1.16 h31a6291_1 conda-forge
22
+ aws-crt-cpp 0.20.3 h0918d87_4 conda-forge
23
+ aws-sdk-cpp 1.10.57 h6f3a27c_17 conda-forge
24
+ backcall 0.2.0 pyh9f0ad1d_0 conda-forge
25
+ backports 1.0 pyhd8ed1ab_3 conda-forge
26
+ backports.functools_lru_cache 1.6.5 pyhd8ed1ab_0 conda-forge
27
+ backports.zoneinfo 0.2.1 py38hb991d35_7 conda-forge
28
+ blinker 1.6.2 pyhd8ed1ab_0 conda-forge
29
+ brotli-python 1.0.9 py38h2b1e499_9 conda-forge
30
+ bzip2 1.0.8 h3422bc3_4 conda-forge
31
+ c-ares 1.19.1 hb547adb_0 conda-forge
32
+ ca-certificates 2023.7.22 hf0a4a13_0 conda-forge
33
+ cachetools 5.3.1 pyhd8ed1ab_0 conda-forge
34
+ certifi 2023.7.22 pyhd8ed1ab_0 conda-forge
35
+ charset-normalizer 3.2.0 pyhd8ed1ab_0 conda-forge
36
+ click 8.1.6 unix_pyh707e725_0 conda-forge
37
+ colorama 0.4.6 pyhd8ed1ab_0 conda-forge
38
+ comm 0.1.3 pyhd8ed1ab_0 conda-forge
39
+ dataclasses 0.8 pyhc8e2a94_3 conda-forge
40
+ datasets 2.13.1 pyhd8ed1ab_0 conda-forge
41
+ debugpy 1.6.7 py38h2b1e499_0 conda-forge
42
+ decorator 5.1.1 pyhd8ed1ab_0 conda-forge
43
+ dill 0.3.6 pyhd8ed1ab_1 conda-forge
44
+ executing 1.2.0 pyhd8ed1ab_0 conda-forge
45
+ faiss-cpu 1.7.4 py3.8_h34215f8_0_cpu pytorch
46
+ filelock 3.12.2 pyhd8ed1ab_0 conda-forge
47
+ freetype 2.12.1 hd633e50_1 conda-forge
48
+ frozenlist 1.4.0 py38hb192615_0 conda-forge
49
+ fsspec 2023.6.0 pyh1a96a4e_0 conda-forge
50
+ gflags 2.2.2 hc88da5d_1004 conda-forge
51
+ gitdb 4.0.10 pyhd8ed1ab_0 conda-forge
52
+ gitpython 3.1.32 pyhd8ed1ab_0 conda-forge
53
+ glog 0.6.0 h6da1cb0_0 conda-forge
54
+ gmp 6.2.1 h9f76cd9_0 conda-forge
55
+ gmpy2 2.1.2 py38h904d018_1 conda-forge
56
+ huggingface_hub 0.16.4 pyhd8ed1ab_0 conda-forge
57
+ idna 3.4 pyhd8ed1ab_0 conda-forge
58
+ importlib-metadata 6.8.0 pyha770c72_0 conda-forge
59
+ importlib_metadata 6.8.0 hd8ed1ab_0 conda-forge
60
+ importlib_resources 6.0.0 pyhd8ed1ab_1 conda-forge
61
+ ipykernel 6.25.0 pyh5fb750a_0 conda-forge
62
+ ipython 8.12.2 pyhd1c38e8_0 conda-forge
63
+ ipywidgets 8.0.7 pyhd8ed1ab_0 conda-forge
64
+ jedi 0.18.2 pyhd8ed1ab_0 conda-forge
65
+ jinja2 3.1.2 pyhd8ed1ab_1 conda-forge
66
+ joblib 1.3.0 pyhd8ed1ab_1 conda-forge
67
+ jsonschema 4.18.4 pyhd8ed1ab_0 conda-forge
68
+ jsonschema-specifications 2023.7.1 pyhd8ed1ab_0 conda-forge
69
+ jupyter_client 8.3.0 pyhd8ed1ab_0 conda-forge
70
+ jupyter_core 5.3.1 py38h10201cd_0 conda-forge
71
+ jupyterlab_widgets 3.0.8 pyhd8ed1ab_0 conda-forge
72
+ krb5 1.21.1 h92f50d5_0 conda-forge
73
+ lcms2 2.15 hd835a16_1 conda-forge
74
+ lerc 4.0.0 h9a09cb3_0 conda-forge
75
+ libabseil 20230125.3 cxx17_h13dd4ca_0 conda-forge
76
+ libarrow 12.0.1 h59b625a_6_cpu conda-forge
77
+ libblas 3.9.0 17_osxarm64_openblas conda-forge
78
+ libbrotlicommon 1.0.9 h1a8c8d9_9 conda-forge
79
+ libbrotlidec 1.0.9 h1a8c8d9_9 conda-forge
80
+ libbrotlienc 1.0.9 h1a8c8d9_9 conda-forge
81
+ libcblas 3.9.0 17_osxarm64_openblas conda-forge
82
+ libcrc32c 1.1.2 hbdafb3b_0 conda-forge
83
+ libcurl 8.2.1 hc52a3a8_0 conda-forge
84
+ libcxx 16.0.6 h4653b0c_0 conda-forge
85
+ libdeflate 1.18 h1a8c8d9_0 conda-forge
86
+ libedit 3.1.20191231 hc8eb9b7_2 conda-forge
87
+ libev 4.33 h642e427_1 conda-forge
88
+ libevent 2.1.12 h2757513_1 conda-forge
89
+ libfaiss 1.7.4 hcb8d3e5_0_cpu pytorch
90
+ libffi 3.4.2 h3422bc3_5 conda-forge
91
+ libgfortran 5.0.0 12_3_0_hd922786_1 conda-forge
92
+ libgfortran5 12.3.0 ha3a6a3e_1 conda-forge
93
+ libgoogle-cloud 2.12.0 he22f4c0_1 conda-forge
94
+ libgrpc 1.54.2 h0a338ca_2 conda-forge
95
+ libjpeg-turbo 2.1.5.1 h1a8c8d9_0 conda-forge
96
+ liblapack 3.9.0 17_osxarm64_openblas conda-forge
97
+ libnghttp2 1.52.0 hae82a92_0 conda-forge
98
+ libopenblas 0.3.23 openmp_hc731615_0 conda-forge
99
+ libpng 1.6.39 h76d750c_0 conda-forge
100
+ libprotobuf 3.21.12 hb5ab8b9_0 conda-forge
101
+ libsodium 1.0.18 h27ca646_1 conda-forge
102
+ libsqlite 3.42.0 hb31c410_0 conda-forge
103
+ libssh2 1.11.0 h7a5bd25_0 conda-forge
104
+ libthrift 0.18.1 ha061701_2 conda-forge
105
+ libtiff 4.5.1 h23a1a89_0 conda-forge
106
+ libutf8proc 2.8.0 h1a8c8d9_0 conda-forge
107
+ libwebp-base 1.3.1 hb547adb_0 conda-forge
108
+ libxcb 1.15 hf346824_0 conda-forge
109
+ libzlib 1.2.13 h53f4e23_5 conda-forge
110
+ llvm-openmp 16.0.6 h1c12783_0 conda-forge
111
+ lz4-c 1.9.4 hb7217d7_0 conda-forge
112
+ markdown-it-py 3.0.0 pyhd8ed1ab_0 conda-forge
113
+ markupsafe 2.1.3 py38hb192615_0 conda-forge
114
+ matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge
115
+ mdurl 0.1.0 pyhd8ed1ab_0 conda-forge
116
+ mpc 1.3.1 h91ba8db_0 conda-forge
117
+ mpfr 4.2.0 he09a6ba_0 conda-forge
118
+ mpmath 1.3.0 pyhd8ed1ab_0 conda-forge
119
+ multidict 6.0.4 py38hb991d35_0 conda-forge
120
+ multiprocess 0.70.15 py38hb192615_0 conda-forge
121
+ ncurses 6.4 h7ea286d_0 conda-forge
122
+ nest-asyncio 1.5.6 pyhd8ed1ab_0 conda-forge
123
+ networkx 3.1 pyhd8ed1ab_0 conda-forge
124
+ nltk 3.8.1 pyhd8ed1ab_0 conda-forge
125
+ numpy 1.24.4 py38ha84db1f_0 conda-forge
126
+ openjpeg 2.5.0 hbc2ba62_2 conda-forge
127
+ openssl 3.1.1 h53f4e23_1 conda-forge
128
+ orc 1.9.0 ha98e9e8_1 conda-forge
129
+ packaging 23.1 pyhd8ed1ab_0 conda-forge
130
+ pandas 2.0.3 py38hefb543e_1 conda-forge
131
+ parso 0.8.3 pyhd8ed1ab_0 conda-forge
132
+ pexpect 4.8.0 pyh1a96a4e_2 conda-forge
133
+ pickleshare 0.7.5 py_1003 conda-forge
134
+ pillow 9.5.0 py38h3f590de_1 conda-forge
135
+ pip 23.2.1 pyhd8ed1ab_0 conda-forge
136
+ pkgutil-resolve-name 1.3.10 pyhd8ed1ab_0 conda-forge
137
+ platformdirs 3.9.1 pyhd8ed1ab_0 conda-forge
138
+ pooch 1.7.0 pyha770c72_3 conda-forge
139
+ prompt-toolkit 3.0.39 pyha770c72_0 conda-forge
140
+ prompt_toolkit 3.0.39 hd8ed1ab_0 conda-forge
141
+ protobuf 4.21.12 py38h2b1e499_0 conda-forge
142
+ psutil 5.9.5 py38hb991d35_0 conda-forge
143
+ pthread-stubs 0.4 h27ca646_1001 conda-forge
144
+ ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
145
+ pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge
146
+ pyarrow 12.0.1 py38h5809dd6_6_cpu conda-forge
147
+ pydeck 0.8.0 pyhd8ed1ab_0 conda-forge
148
+ pygments 2.15.1 pyhd8ed1ab_0 conda-forge
149
+ pympler 1.0.1 pyhd8ed1ab_0 conda-forge
150
+ pymystem3 0.2.0 pypi_0 pypi
151
+ pysocks 1.7.1 pyha2e5f31_6 conda-forge
152
+ python 3.8.17 h3ba56d0_0_cpython conda-forge
153
+ python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge
154
+ python-tzdata 2023.3 pyhd8ed1ab_0 conda-forge
155
+ python-xxhash 3.2.0 py38hb991d35_0 conda-forge
156
+ python_abi 3.8 3_cp38 conda-forge
157
+ pytorch 2.0.0 cpu_py38hb5ed39e_0 conda-forge
158
+ pytz 2023.3 pyhd8ed1ab_0 conda-forge
159
+ pytz-deprecation-shim 0.1.0.post0 py38h10201cd_3 conda-forge
160
+ pyyaml 6.0 py38hb991d35_5 conda-forge
161
+ pyzmq 25.1.0 py38hef91016_0 conda-forge
162
+ re2 2023.03.02 hc5e2d97_0 conda-forge
163
+ readline 8.2 h92ec313_1 conda-forge
164
+ referencing 0.30.0 pyhd8ed1ab_0 conda-forge
165
+ regex 2023.6.3 py38hb192615_0 conda-forge
166
+ requests 2.31.0 pyhd8ed1ab_0 conda-forge
167
+ responses 0.18.0 pyhd8ed1ab_0 conda-forge
168
+ rich 13.4.2 pyhd8ed1ab_0 conda-forge
169
+ rpds-py 0.9.2 py38hd0c8013_0 conda-forge
170
+ sacremoses 0.0.53 pyhd8ed1ab_0 conda-forge
171
+ safetensors 0.3.1 py38hd0c8013_0 conda-forge
172
+ scikit-learn 1.0.2 py38h9197a36_1 anaconda
173
+ scipy 1.10.1 py38h038e806_3 conda-forge
174
+ setuptools 68.0.0 pyhd8ed1ab_0 conda-forge
175
+ six 1.16.0 pyh6c4a22f_0 conda-forge
176
+ sleef 3.5.1 h156473d_2 conda-forge
177
+ smmap 3.0.5 pyh44b312d_0 conda-forge
178
+ snappy 1.1.10 h17c5cce_0 conda-forge
179
+ stack_data 0.6.2 pyhd8ed1ab_0 conda-forge
180
+ streamlit 1.24.1 pyhd8ed1ab_1 conda-forge
181
+ sympy 1.12 pypyh9d50eac_103 conda-forge
182
+ tenacity 8.2.2 pyhd8ed1ab_0 conda-forge
183
+ threadpoolctl 3.2.0 pyha21a80b_0 conda-forge
184
+ tk 8.6.12 he1e0b03_0 conda-forge
185
+ tokenizers 0.13.3 py38hf11c49c_0 conda-forge
186
+ toml 0.10.2 pyhd8ed1ab_0 conda-forge
187
+ toolz 0.12.0 pyhd8ed1ab_0 conda-forge
188
+ tornado 6.3.2 py38hb192615_0 conda-forge
189
+ tqdm 4.65.0 pyhd8ed1ab_1 conda-forge
190
+ traitlets 5.9.0 pyhd8ed1ab_0 conda-forge
191
+ transformers 4.31.0 pyhd8ed1ab_0 conda-forge
192
+ typing-extensions 4.7.1 hd8ed1ab_0 conda-forge
193
+ typing_extensions 4.7.1 pyha770c72_0 conda-forge
194
+ tzdata 2023c h71feb2d_0 conda-forge
195
+ tzlocal 4.3 py38h10201cd_0 conda-forge
196
+ urllib3 2.0.4 pyhd8ed1ab_0 conda-forge
197
+ validators 0.20.0 pyhd8ed1ab_0 conda-forge
198
+ watchdog 3.0.0 py38hb991d35_0 conda-forge
199
+ wcwidth 0.2.6 pyhd8ed1ab_0 conda-forge
200
+ wheel 0.41.0 pyhd8ed1ab_0 conda-forge
201
+ widgetsnbextension 4.0.8 pyhd8ed1ab_0 conda-forge
202
+ xorg-libxau 1.0.11 hb547adb_0 conda-forge
203
+ xorg-libxdmcp 1.1.3 h27ca646_0 conda-forge
204
+ xxhash 0.8.1 h1a8c8d9_0 conda-forge
205
+ xz 5.2.6 h57fd34a_0 conda-forge
206
+ yaml 0.2.5 h3422bc3_2 conda-forge
207
+ yarl 1.9.2 py38hb192615_0 conda-forge
208
+ zeromq 4.3.4 hbdafb3b_1 conda-forge
209
+ zipp 3.16.2 pyhd8ed1ab_0 conda-forge
210
+ zlib 1.2.13 h53f4e23_5 conda-forge
211
+ zstd 1.5.2 h4f39d0f_7 conda-forge