RandomCatLover commited on
Commit
f557dc8
·
verified ·
1 Parent(s): ead28d9

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +25 -0
  2. requirements.txt +280 -0
app.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from huggingface_hub import HfApi
3
+
4
+ destination = 'core'
5
+
6
+ if os.path.exists('.env'):
7
+ from dotenv import load_dotenv
8
+ load_dotenv()
9
+
10
+ if not os.path.exists(destination):
11
+ # security by obscurity
12
+ import subprocess
13
+ repo_url = os.getenv("GIT_CORE")
14
+ command = f'git clone {repo_url} {destination}'
15
+ try:
16
+ subprocess.check_output(command, stderr=subprocess.STDOUT, shell=True)#, env=env)
17
+ print('Repository cloned successfully.')
18
+ except subprocess.CalledProcessError as e:
19
+ print(f'Error cloning repository') #{e.output.decode()}')
20
+
21
+ from core.main import demo
22
+
23
+ # demo.queue(concurrency_count=3)
24
+
25
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ absl-py==2.2.2
2
+ accelerate==0.34.2
3
+ adagio==0.2.6
4
+ aiofiles==23.2.1
5
+ aiohappyeyeballs==2.4.3
6
+ aiohttp==3.10.10
7
+ aiohttp-cors==0.8.1
8
+ aiosignal==1.3.1
9
+ alembic==1.15.2
10
+ altair==5.3.0
11
+ annotated-types==0.7.0
12
+ antlr4-python3-runtime==4.9.3
13
+ anyio==4.3.0
14
+ appdirs==1.4.4
15
+ asttokens==2.4.1
16
+ async-timeout==4.0.3
17
+ attrs==23.2.0
18
+ auto-sklearn==0.15.0
19
+ autogluon==1.2
20
+ autogluon.common==1.2
21
+ autogluon.core==1.2
22
+ autogluon.features==1.2
23
+ autogluon.multimodal==1.2
24
+ autogluon.tabular==1.2
25
+ autogluon.timeseries==1.2
26
+ beautifulsoup4==4.13.3
27
+ blis==0.7.11
28
+ boto3==1.37.34
29
+ botocore==1.37.34
30
+ cachetools==5.5.2
31
+ catalogue==2.0.10
32
+ catboost==1.2.8
33
+ certifi==2024.2.2
34
+ charset-normalizer==3.3.2
35
+ click==8.1.7
36
+ cloudpathlib==0.21.0
37
+ cloudpickle==3.1.1
38
+ colorama==0.4.6
39
+ colorful==0.5.6
40
+ colorlog==6.9.0
41
+ comm==0.2.1
42
+ confection==0.1.5
43
+ ConfigSpace==0.4.21
44
+ contourpy==1.2.0
45
+ coreforecast==0.0.12
46
+ cycler==0.12.1
47
+ cymem==2.0.11
48
+ Cython==3.0.12
49
+ dask==2024.8.0
50
+ datasets==3.0.1
51
+ debugpy==1.8.1
52
+ decorator==5.1.1
53
+ defusedxml==0.7.1
54
+ dill==0.3.8
55
+ distlib==0.3.9
56
+ distributed==2024.8.0
57
+ distro==1.9.0
58
+ dnspython==2.6.1
59
+ efficientnet-pytorch==0.7.1
60
+ einops==0.8.0
61
+ email_validator==2.1.1
62
+ emcee==3.1.6
63
+ evaluate==0.4.3
64
+ exceptiongroup==1.2.0
65
+ executing==2.0.1
66
+ fastai==2.7.19
67
+ fastapi==0.111.0
68
+ fastapi-cli==0.0.4
69
+ fastcore==1.7.29
70
+ fastdownload==0.0.7
71
+ fastprogress==1.0.3
72
+ ffmpy==0.3.2
73
+ filelock==3.18.0
74
+ fonttools==4.49.0
75
+ frozenlist==1.4.1
76
+ fs==2.4.16
77
+ fsspec==2024.3.1
78
+ fugue==0.9.1
79
+ future==1.0.0
80
+ gdown==5.2.0
81
+ gluonts==0.16.1
82
+ google-api-core==2.24.2
83
+ google-auth==2.39.0
84
+ googleapis-common-protos==1.70.0
85
+ grad-cam==1.5.5
86
+ gradio==4.44.1
87
+ gradio_client==1.3.0
88
+ graphviz==0.20.3
89
+ greenlet==3.1.1
90
+ grpcio==1.71.0
91
+ h11==0.14.0
92
+ httpcore==1.0.5
93
+ httptools==0.6.1
94
+ httpx==0.27.0
95
+ huggingface-hub==0.25.2
96
+ hyperopt==0.2.7
97
+ idna==3.6
98
+ imageio==2.34.0
99
+ importlib_metadata==7.0.2
100
+ importlib_resources==6.1.3
101
+ ipykernel==6.29.3
102
+ ipython==8.18.1
103
+ jedi==0.19.1
104
+ Jinja2==3.1.2
105
+ jmespath==1.0.1
106
+ joblib==1.4.2
107
+ jsonschema==4.21.1
108
+ jsonschema-specifications==2023.12.1
109
+ jupyter_client==8.6.0
110
+ jupyter_core==5.7.1
111
+ kiwisolver==1.4.5
112
+ langcodes==3.5.0
113
+ language_data==1.3.0
114
+ lazy_loader==0.3
115
+ liac-arff==2.5.0
116
+ lightgbm==4.5.0
117
+ lightning==2.5.1
118
+ lightning-utilities==0.14.3
119
+ linkify-it-py==2.0.3
120
+ llvmlite==0.43.0
121
+ locket==1.0.0
122
+ Mako==1.3.10
123
+ marisa-trie==1.2.1
124
+ Markdown==3.8
125
+ markdown-it-py==3.0.0
126
+ MarkupSafe==2.1.3
127
+ matplotlib==3.8.3
128
+ matplotlib-inline==0.1.6
129
+ mdit-py-plugins==0.4.2
130
+ mdurl==0.1.2
131
+ memray==1.17.1
132
+ mkl-service==2.4.0
133
+ mlforecast==0.13.4
134
+ model-index==0.1.11
135
+ mpmath==1.3.0
136
+ msgpack==1.1.0
137
+ multidict==6.1.0
138
+ multiprocess==0.70.16
139
+ munch==4.0.0
140
+ murmurhash==1.0.12
141
+ narwhals==1.35.0
142
+ nest-asyncio==1.6.0
143
+ networkx==3.2.1
144
+ nlpaug==1.1.11
145
+ nltk==3.8.1
146
+ numba==0.60.0
147
+ numpy==1.26.4
148
+ omegaconf==2.2.3
149
+ opencensus==0.11.4
150
+ opencensus-context==0.1.3
151
+ opencv-python==4.9.0.80
152
+ opendatalab==0.0.10
153
+ openmim==0.3.9
154
+ openxlab==0.0.11
155
+ optuna==4.3.0
156
+ ordered-set==4.1.0
157
+ orjson==3.10.3
158
+ packaging==23.2
159
+ parso==0.8.3
160
+ partd==1.4.2
161
+ patsy==1.0.1
162
+ pdf2image==1.17.0
163
+ pexpect==4.9.0
164
+ pillow==10.2.0
165
+ platformdirs==4.2.0
166
+ plotly==6.0.1
167
+ preshed==3.0.9
168
+ pretrainedmodels==0.7.4
169
+ prometheus_client==0.21.1
170
+ prompt-toolkit==3.0.43
171
+ propcache==0.2.0
172
+ proto-plus==1.26.1
173
+ protobuf==6.30.2
174
+ psutil==5.9.8
175
+ ptyprocess==0.7.0
176
+ pure-eval==0.2.2
177
+ py-spy==0.4.0
178
+ py4j==0.10.9.9
179
+ pyarrow==17.0.0
180
+ pyasn1==0.6.1
181
+ pyasn1_modules==0.4.2
182
+ pycocotools==2.0.7
183
+ pycryptodome==3.22.0
184
+ pydantic==2.7.1
185
+ pydantic_core==2.18.2
186
+ pydub==0.25.1
187
+ Pygments==2.17.2
188
+ pynisher==0.6.4
189
+ pyparsing==3.1.2
190
+ pyrfr==0.8.3
191
+ PySocks==1.7.1
192
+ pytesseract==0.3.10
193
+ python-dotenv==1.0.1
194
+ python-multipart==0.0.9
195
+ pytorch-lightning==2.5.1
196
+ pytorch-metric-learning==2.3.0
197
+ PyYAML==6.0.1
198
+ pyzmq==25.1.2
199
+ ray==2.39.0
200
+ referencing==0.35.1
201
+ regex==2024.9.11
202
+ requests==2.32.3
203
+ rich==13.7.1
204
+ rpds-py==0.18.1
205
+ rsa==4.9
206
+ ruff==0.4.4
207
+ s3transfer==0.11.4
208
+ safetensors==0.5.3
209
+ scikit-image==0.22.0
210
+ scikit-learn==0.24.2
211
+ scipy==1.12.0
212
+ seaborn==0.13.2
213
+ segmentation-models-pytorch==0.3.3
214
+ semantic-version==2.10.0
215
+ sentencepiece==0.2.0
216
+ seqeval==1.2.2
217
+ shellingham==1.5.4
218
+ smac==1.2
219
+ smart-open==7.1.0
220
+ sniffio==1.3.1
221
+ sortedcontainers==2.4.0
222
+ soupsieve==2.6
223
+ spacy==3.7.5
224
+ spacy-legacy==3.0.12
225
+ spacy-loggers==1.0.5
226
+ SQLAlchemy==2.0.40
227
+ srsly==2.5.1
228
+ stack-data==0.6.3
229
+ starlette==0.37.2
230
+ statsforecast==1.7.8
231
+ statsmodels==0.14.4
232
+ sympy==1.12
233
+ tabulate==0.9.0
234
+ tblib==3.1.0
235
+ tensorboard==2.19.0
236
+ tensorboard-data-server==0.7.2
237
+ tensorboardX==2.6.2.2
238
+ text-unidecode==1.3
239
+ textual==3.1.0
240
+ thinc==8.2.5
241
+ threadpoolctl==3.5.0
242
+ tifffile==2024.2.12
243
+ timm==1.0.3
244
+ tokenizers==0.20.1
245
+ tomlkit==0.12.0
246
+ toolz==0.12.1
247
+ torch==2.2.1
248
+ torchaudio==2.2.1
249
+ torchmetrics==1.2.1
250
+ torchsummary==1.5.1
251
+ torchvision==0.17.1
252
+ tornado==6.4
253
+ tqdm==4.66.5
254
+ traitlets==5.14.1
255
+ transformers==4.45.2
256
+ triad==0.9.8
257
+ triton==2.2.0
258
+ ttach==0.0.3
259
+ typer==0.12.3
260
+ typing_extensions==4.13.2
261
+ uc-micro-py==1.0.3
262
+ ujson==5.10.0
263
+ urllib3==2.4.0
264
+ utilsforecast==0.2.4
265
+ uvicorn==0.29.0
266
+ uvloop==0.19.0
267
+ virtualenv==20.30.0
268
+ wasabi==1.1.3
269
+ watchfiles==0.21.0
270
+ wcwidth==0.2.13
271
+ weasel==0.4.1
272
+ websockets==11.0.3
273
+ Werkzeug==3.1.3
274
+ window_ops==0.0.15
275
+ wrapt==1.17.2
276
+ xgboost==2.1.4
277
+ xxhash==3.5.0
278
+ yarl==1.15.0
279
+ zict==3.0.0
280
+ zipp==3.17.0