Spaces:
Runtime error
Runtime error
MJSHIN0122
commited on
Commit
·
db11e56
1
Parent(s):
4ce27dc
init
Browse files- app.py +16 -0
- requirements.txt +69 -0
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from git import Repo
|
3 |
+
import sys
|
4 |
+
|
5 |
+
access_token = os.environ['AccessTokenToPrivate']
|
6 |
+
Repo.clone_from(f"https://MJSHIN0122:{access_token}@huggingface.co/spaces/MJSHIN0122/emotion_mjshin.git",
|
7 |
+
"./repo_directory")
|
8 |
+
|
9 |
+
print("Clone Done.")
|
10 |
+
|
11 |
+
sys.path.append(os.path.abspath("./repo_directory"))
|
12 |
+
sys.path.append(os.path.abspath("./repo_directory/src"))
|
13 |
+
from repo_directory.web import create_demo
|
14 |
+
|
15 |
+
demo = create_demo()
|
16 |
+
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiohttp==3.9.3
|
2 |
+
aiosignal==1.3.1
|
3 |
+
annotated-types==0.6.0
|
4 |
+
anyio==4.2.0
|
5 |
+
async-timeout==4.0.3
|
6 |
+
attrs==23.2.0
|
7 |
+
blinker==1.7.0
|
8 |
+
certifi==2024.2.2
|
9 |
+
charset-normalizer==3.3.2
|
10 |
+
click==8.1.7
|
11 |
+
colorama==0.4.6
|
12 |
+
distro==1.9.0
|
13 |
+
exceptiongroup==1.2.0
|
14 |
+
faiss-cpu==1.7.4
|
15 |
+
filelock==3.13.1
|
16 |
+
Flask==3.0.2
|
17 |
+
Flask-Cors==4.0.0
|
18 |
+
frozenlist==1.4.1
|
19 |
+
fsspec==2024.2.0
|
20 |
+
h11==0.14.0
|
21 |
+
httpcore==1.0.2
|
22 |
+
httpx==0.26.0
|
23 |
+
huggingface-hub==0.20.3
|
24 |
+
idna==3.6
|
25 |
+
itsdangerous==2.1.2
|
26 |
+
Jinja2==3.1.3
|
27 |
+
joblib==1.3.2
|
28 |
+
MarkupSafe==2.1.5
|
29 |
+
mpmath==1.3.0
|
30 |
+
multidict==6.0.5
|
31 |
+
networkx==3.2.1
|
32 |
+
nltk==3.8.1
|
33 |
+
numpy==1.26.4
|
34 |
+
openai==1.11.1
|
35 |
+
packaging==23.2
|
36 |
+
pandas==2.2.0
|
37 |
+
pillow==10.2.0
|
38 |
+
pydantic==2.6.1
|
39 |
+
pydantic_core==2.16.2
|
40 |
+
pydot==2.0.0
|
41 |
+
pyparsing==3.1.1
|
42 |
+
python-dateutil==2.8.2
|
43 |
+
pytz==2024.1
|
44 |
+
PyYAML==6.0.1
|
45 |
+
regex==2023.12.25
|
46 |
+
requests==2.31.0
|
47 |
+
safetensors==0.4.2
|
48 |
+
scikit-learn==1.4.0
|
49 |
+
scipy==1.12.0
|
50 |
+
sentence-transformers==2.3.1
|
51 |
+
sentencepiece==0.1.99
|
52 |
+
six==1.16.0
|
53 |
+
sniffio==1.3.0
|
54 |
+
sympy==1.12
|
55 |
+
threadpoolctl==3.2.0
|
56 |
+
tokenizers==0.15.1
|
57 |
+
torch==2.2.0
|
58 |
+
tqdm==4.66.1
|
59 |
+
transformers==4.37.2
|
60 |
+
typing_extensions==4.9.0
|
61 |
+
tzdata==2023.4
|
62 |
+
urllib3==2.2.0
|
63 |
+
Werkzeug==3.0.1
|
64 |
+
yarl==1.9.4
|
65 |
+
edge_tts==6.1.7
|
66 |
+
gradio==4.18.0
|
67 |
+
plotly
|
68 |
+
GitPython
|
69 |
+
gunicorn
|