Aymene commited on
Commit
f06d872
1 Parent(s): edac8d4

deploy to huggingface spaces

Browse files
Files changed (3) hide show
  1. app.py +20 -0
  2. model_after_train.pt +3 -0
  3. requirements.txt +393 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+
4
+ import gradio as gr
5
+ from gradio.inputs import Textbox
6
+ from gradio.outputs import Textbox as TextOutput
7
+
8
+ def process(text):
9
+ print('Hello')
10
+ sys.stdout.flush()
11
+ return f'Hi {text} (API_KEY: {os.environ.get("API_KEY")})'
12
+
13
+ interface = gr.Interface(
14
+ fn=process,
15
+ inputs=[Textbox()],
16
+ outputs=[TextOutput()],
17
+ theme='huggingface',
18
+ )
19
+
20
+ interface.launch()
model_after_train.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efc53ffbe16998a6f9587871e19fc3542f21d7def71df47c6235bbeecc97300d
3
+ size 438869221
requirements.txt ADDED
@@ -0,0 +1,393 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ absl-py==1.0.0
2
+ alabaster==0.7.12
3
+ albumentations==0.1.12
4
+ altair==4.2.0
5
+ appdirs==1.4.4
6
+ argon2-cffi==21.3.0
7
+ argon2-cffi-bindings==21.2.0
8
+ arviz==0.11.4
9
+ astor==0.8.1
10
+ astropy==4.3.1
11
+ astunparse==1.6.3
12
+ atari-py==0.2.9
13
+ atomicwrites==1.4.0
14
+ attrs==21.4.0
15
+ audioread==2.1.9
16
+ autograd==1.3
17
+ Babel==2.9.1
18
+ backcall==0.2.0
19
+ beautifulsoup4==4.6.3
20
+ bleach==4.1.0
21
+ blis==0.4.1
22
+ bokeh==2.3.3
23
+ Bottleneck==1.3.4
24
+ branca==0.4.2
25
+ bs4==0.0.1
26
+ CacheControl==0.12.10
27
+ cached-property==1.5.2
28
+ cachetools==4.2.4
29
+ catalogue==1.0.0
30
+ certifi==2021.10.8
31
+ cffi==1.15.0
32
+ cftime==1.6.0
33
+ chardet==3.0.4
34
+ charset-normalizer==2.0.12
35
+ click==7.1.2
36
+ cloudpickle==1.3.0
37
+ cmake==3.12.0
38
+ cmdstanpy==0.9.5
39
+ colorcet==3.0.0
40
+ colorlover==0.3.0
41
+ community==1.0.0b1
42
+ contextlib2==0.5.5
43
+ convertdate==2.4.0
44
+ coverage==3.7.1
45
+ coveralls==0.5
46
+ crcmod==1.7
47
+ cufflinks==0.17.3
48
+ cupy-cuda111==9.4.0
49
+ cvxopt==1.2.7
50
+ cvxpy==1.0.31
51
+ cycler==0.11.0
52
+ cymem==2.0.6
53
+ Cython==0.29.28
54
+ daft==0.0.4
55
+ dask==2.12.0
56
+ datascience==0.10.6
57
+ debugpy==1.0.0
58
+ decorator==4.4.2
59
+ defusedxml==0.7.1
60
+ descartes==1.1.0
61
+ dill==0.3.4
62
+ distributed==1.25.3
63
+ dlib @ file:///dlib-19.18.0-cp37-cp37m-linux_x86_64.whl
64
+ dm-tree==0.1.6
65
+ docopt==0.6.2
66
+ docutils==0.17.1
67
+ dopamine-rl==1.0.5
68
+ earthengine-api==0.1.303
69
+ easydict==1.9
70
+ ecos==2.0.10
71
+ editdistance==0.5.3
72
+ en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.5/en_core_web_sm-2.2.5.tar.gz
73
+ entrypoints==0.4
74
+ ephem==4.1.3
75
+ et-xmlfile==1.1.0
76
+ fa2==0.3.5
77
+ fastai==1.0.61
78
+ fastdtw==0.3.4
79
+ fastprogress==1.0.2
80
+ fastrlock==0.8
81
+ fbprophet==0.7.1
82
+ feather-format==0.4.1
83
+ filelock==3.6.0
84
+ firebase-admin==4.4.0
85
+ fix-yahoo-finance==0.0.22
86
+ Flask==1.1.4
87
+ flatbuffers==2.0
88
+ folium==0.8.3
89
+ future==0.16.0
90
+ gast==0.5.3
91
+ GDAL==2.2.2
92
+ gdown==4.2.2
93
+ gensim==3.6.0
94
+ geographiclib==1.52
95
+ geopy==1.17.0
96
+ gin-config==0.5.0
97
+ glob2==0.7
98
+ google==2.0.3
99
+ google-api-core==1.26.3
100
+ google-api-python-client==1.12.11
101
+ google-auth==1.35.0
102
+ google-auth-httplib2==0.0.4
103
+ google-auth-oauthlib==0.4.6
104
+ google-cloud-bigquery==1.21.0
105
+ google-cloud-bigquery-storage==1.1.0
106
+ google-cloud-core==1.0.3
107
+ google-cloud-datastore==1.8.0
108
+ google-cloud-firestore==1.7.0
109
+ google-cloud-language==1.2.0
110
+ google-cloud-storage==1.18.1
111
+ google-cloud-translate==1.5.0
112
+ google-colab @ file:///colabtools/dist/google-colab-1.0.0.tar.gz
113
+ google-pasta==0.2.0
114
+ google-resumable-media==0.4.1
115
+ googleapis-common-protos==1.56.0
116
+ googledrivedownloader==0.4
117
+ graphviz==0.10.1
118
+ greenlet==1.1.2
119
+ grpcio==1.44.0
120
+ gspread==3.4.2
121
+ gspread-dataframe==3.0.8
122
+ gym==0.17.3
123
+ h5py==3.1.0
124
+ HeapDict==1.0.1
125
+ hijri-converter==2.2.3
126
+ holidays==0.10.5.2
127
+ holoviews==1.14.8
128
+ html5lib==1.0.1
129
+ httpimport==0.5.18
130
+ httplib2==0.17.4
131
+ httplib2shim==0.0.3
132
+ huggingface-hub==0.4.0
133
+ humanize==0.5.1
134
+ hyperopt==0.1.2
135
+ ideep4py==2.0.0.post3
136
+ idna==2.10
137
+ imageio==2.4.1
138
+ imagesize==1.3.0
139
+ imbalanced-learn==0.8.1
140
+ imblearn==0.0
141
+ imgaug==0.2.9
142
+ importlib-metadata==4.11.3
143
+ importlib-resources==5.4.0
144
+ imutils==0.5.4
145
+ inflect==2.1.0
146
+ iniconfig==1.1.1
147
+ intel-openmp==2022.0.2
148
+ intervaltree==2.1.0
149
+ ipykernel==4.10.1
150
+ ipython==5.5.0
151
+ ipython-genutils==0.2.0
152
+ ipython-sql==0.3.9
153
+ ipywidgets==7.7.0
154
+ itsdangerous==1.1.0
155
+ jax==0.3.4
156
+ jaxlib @ https://storage.googleapis.com/jax-releases/cuda11/jaxlib-0.3.2+cuda11.cudnn805-cp37-none-manylinux2010_x86_64.whl
157
+ jedi==0.18.1
158
+ jieba==0.42.1
159
+ Jinja2==2.11.3
160
+ joblib==1.1.0
161
+ jpeg4py==0.1.4
162
+ jsonschema==4.3.3
163
+ jupyter==1.0.0
164
+ jupyter-client==5.3.5
165
+ jupyter-console==5.2.0
166
+ jupyter-core==4.9.2
167
+ jupyterlab-pygments==0.1.2
168
+ jupyterlab-widgets==1.1.0
169
+ kaggle==1.5.12
170
+ kapre==0.3.7
171
+ keras==2.8.0
172
+ Keras-Preprocessing==1.1.2
173
+ keras-vis==0.4.1
174
+ kiwisolver==1.4.0
175
+ korean-lunar-calendar==0.2.1
176
+ libclang==13.0.0
177
+ librosa==0.8.1
178
+ lightgbm==2.2.3
179
+ llvmlite==0.34.0
180
+ lmdb==0.99
181
+ LunarCalendar==0.0.9
182
+ lxml==4.2.6
183
+ Markdown==3.3.6
184
+ MarkupSafe==2.0.1
185
+ matplotlib==3.2.2
186
+ matplotlib-inline==0.1.3
187
+ matplotlib-venn==0.11.6
188
+ missingno==0.5.1
189
+ mistune==0.8.4
190
+ mizani==0.6.0
191
+ mkl==2019.0
192
+ mlxtend==0.14.0
193
+ more-itertools==8.12.0
194
+ moviepy==0.2.3.5
195
+ mpmath==1.2.1
196
+ msgpack==1.0.3
197
+ multiprocess==0.70.12.2
198
+ multitasking==0.0.10
199
+ murmurhash==1.0.6
200
+ music21==5.5.0
201
+ natsort==5.5.0
202
+ nbclient==0.5.13
203
+ nbconvert==5.6.1
204
+ nbformat==5.2.0
205
+ nest-asyncio==1.5.4
206
+ netCDF4==1.5.8
207
+ networkx==2.6.3
208
+ nibabel==3.0.2
209
+ nltk==3.2.5
210
+ notebook==5.3.1
211
+ numba==0.51.2
212
+ numexpr==2.8.1
213
+ numpy==1.21.5
214
+ nvidia-ml-py3==7.352.0
215
+ oauth2client==4.1.3
216
+ oauthlib==3.2.0
217
+ okgrade==0.4.3
218
+ opencv-contrib-python==4.1.2.30
219
+ opencv-python==4.1.2.30
220
+ openpyxl==3.0.9
221
+ opt-einsum==3.3.0
222
+ osqp==0.6.2.post0
223
+ packaging==21.3
224
+ palettable==3.3.0
225
+ pandas==1.3.5
226
+ pandas-datareader==0.9.0
227
+ pandas-gbq==0.13.3
228
+ pandas-profiling==1.4.1
229
+ pandocfilters==1.5.0
230
+ panel==0.12.1
231
+ param==1.12.0
232
+ parso==0.8.3
233
+ pathlib==1.0.1
234
+ patsy==0.5.2
235
+ pep517==0.12.0
236
+ pexpect==4.8.0
237
+ pickleshare==0.7.5
238
+ Pillow==7.1.2
239
+ pip-tools==6.2.0
240
+ pipreqs==0.4.11
241
+ plac==1.1.3
242
+ plotly==5.5.0
243
+ plotnine==0.6.0
244
+ pluggy==0.7.1
245
+ pooch==1.6.0
246
+ portpicker==1.3.9
247
+ prefetch-generator==1.0.1
248
+ preshed==3.0.6
249
+ prettytable==3.2.0
250
+ progressbar2==3.38.0
251
+ prometheus-client==0.13.1
252
+ promise==2.3
253
+ prompt-toolkit==1.0.18
254
+ protobuf==3.17.3
255
+ psutil==5.4.8
256
+ psycopg2==2.7.6.1
257
+ ptyprocess==0.7.0
258
+ py==1.11.0
259
+ pyarrow==6.0.1
260
+ pyasn1==0.4.8
261
+ pyasn1-modules==0.2.8
262
+ pycocotools==2.0.4
263
+ pycparser==2.21
264
+ pyct==0.4.8
265
+ pydata-google-auth==1.4.0
266
+ pydot==1.3.0
267
+ pydot-ng==2.0.0
268
+ pydotplus==2.0.2
269
+ PyDrive==1.3.1
270
+ pyemd==0.5.1
271
+ pyerfa==2.0.0.1
272
+ pyglet==1.5.0
273
+ Pygments==2.6.1
274
+ pygobject==3.26.1
275
+ pymc3==3.11.4
276
+ PyMeeus==0.5.11
277
+ pymongo==4.0.2
278
+ pymystem3==0.2.0
279
+ PyOpenGL==3.1.6
280
+ pyparsing==3.0.7
281
+ pyrsistent==0.18.1
282
+ pysndfile==1.3.8
283
+ PySocks==1.7.1
284
+ pystan==2.19.1.1
285
+ pytest==3.6.4
286
+ python-apt==0.0.0
287
+ python-chess==0.23.11
288
+ python-dateutil==2.8.2
289
+ python-louvain==0.16
290
+ python-slugify==6.1.1
291
+ python-utils==3.1.0
292
+ pytz==2018.9
293
+ pyviz-comms==2.1.0
294
+ PyWavelets==1.3.0
295
+ PyYAML==6.0
296
+ pyzmq==22.3.0
297
+ qdldl==0.1.5.post0
298
+ qtconsole==5.2.2
299
+ QtPy==2.0.1
300
+ regex==2019.12.20
301
+ requests==2.23.0
302
+ requests-oauthlib==1.3.1
303
+ resampy==0.2.2
304
+ rpy2==3.4.5
305
+ rsa==4.8
306
+ sacremoses==0.0.49
307
+ scikit-image==0.18.3
308
+ scikit-learn==1.0.2
309
+ scipy==1.4.1
310
+ screen-resolution-extra==0.0.0
311
+ scs==3.2.0
312
+ seaborn==0.11.2
313
+ semver==2.13.0
314
+ Send2Trash==1.8.0
315
+ setuptools-git==1.2
316
+ Shapely==1.8.1.post1
317
+ simplegeneric==0.8.1
318
+ six==1.15.0
319
+ sklearn==0.0
320
+ sklearn-pandas==1.8.0
321
+ smart-open==5.2.1
322
+ snowballstemmer==2.2.0
323
+ sortedcontainers==2.4.0
324
+ SoundFile==0.10.3.post1
325
+ soupsieve==2.3.1
326
+ spacy==2.2.4
327
+ Sphinx==1.8.6
328
+ sphinxcontrib-serializinghtml==1.1.5
329
+ sphinxcontrib-websupport==1.2.4
330
+ SQLAlchemy==1.4.32
331
+ sqlparse==0.4.2
332
+ srsly==1.0.5
333
+ statsmodels==0.10.2
334
+ sympy==1.7.1
335
+ tables==3.7.0
336
+ tabulate==0.8.9
337
+ tblib==1.7.0
338
+ tenacity==8.0.1
339
+ tensorboard==2.8.0
340
+ tensorboard-data-server==0.6.1
341
+ tensorboard-plugin-wit==1.8.1
342
+ tensorflow @ file:///tensorflow-2.8.0-cp37-cp37m-linux_x86_64.whl
343
+ tensorflow-datasets==4.0.1
344
+ tensorflow-estimator==2.8.0
345
+ tensorflow-gcs-config==2.8.0
346
+ tensorflow-hub==0.12.0
347
+ tensorflow-io-gcs-filesystem==0.24.0
348
+ tensorflow-metadata==1.7.0
349
+ tensorflow-probability==0.16.0
350
+ termcolor==1.1.0
351
+ terminado==0.13.3
352
+ testpath==0.6.0
353
+ text-unidecode==1.3
354
+ textblob==0.15.3
355
+ Theano-PyMC==1.1.2
356
+ thinc==7.4.0
357
+ threadpoolctl==3.1.0
358
+ tifffile==2021.11.2
359
+ tokenizers==0.11.6
360
+ tomli==2.0.1
361
+ toolz==0.11.2
362
+ torch @ https://download.pytorch.org/whl/cu111/torch-1.10.0%2Bcu111-cp37-cp37m-linux_x86_64.whl
363
+ torchaudio @ https://download.pytorch.org/whl/cu111/torchaudio-0.10.0%2Bcu111-cp37-cp37m-linux_x86_64.whl
364
+ torchsummary==1.5.1
365
+ torchtext==0.11.0
366
+ torchvision @ https://download.pytorch.org/whl/cu111/torchvision-0.11.1%2Bcu111-cp37-cp37m-linux_x86_64.whl
367
+ tornado==5.1.1
368
+ tqdm==4.63.0
369
+ traitlets==5.1.1
370
+ transformers==4.17.0
371
+ tweepy==3.10.0
372
+ typeguard==2.7.1
373
+ typing-extensions==3.10.0.2
374
+ tzlocal==1.5.1
375
+ uritemplate==3.0.1
376
+ urllib3==1.24.3
377
+ vega-datasets==0.9.0
378
+ wasabi==0.9.0
379
+ wcwidth==0.2.5
380
+ webencodings==0.5.1
381
+ Werkzeug==1.0.1
382
+ widgetsnbextension==3.6.0
383
+ wordcloud==1.5.0
384
+ wrapt==1.14.0
385
+ xarray==0.18.2
386
+ xgboost==0.90
387
+ xkit==0.0.0
388
+ xlrd==1.1.0
389
+ xlwt==1.3.0
390
+ yarg==0.1.9
391
+ yellowbrick==1.4
392
+ zict==2.1.0
393
+ zipp==3.7.0