Spaces:
Running
Running
Commit
·
8314532
1
Parent(s):
8363eb6
req updates
Browse files- main.py +7 -4
- requirements.txt +56 -61
main.py
CHANGED
@@ -12,11 +12,14 @@ import json
|
|
12 |
import uuid
|
13 |
import os
|
14 |
from pathlib import Path
|
15 |
-
from huggingface_hub import
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
-
# Login with token
|
18 |
-
hf_token = os.environ.get("HF_TOKEN")
|
19 |
-
login(token=hf_token)
|
20 |
|
21 |
app = FastAPI(title="TIMIT Phoneme Transcription Leaderboard")
|
22 |
|
|
|
12 |
import uuid
|
13 |
import os
|
14 |
from pathlib import Path
|
15 |
+
from huggingface_hub import HfApi
|
16 |
+
import evaluate
|
17 |
+
from evaluate.downloading.download_config import DownloadConfig
|
18 |
+
|
19 |
+
# Set up download configuration with your token
|
20 |
+
download_config = DownloadConfig()
|
21 |
+
download_config.token = os.environ.get("HF_TOKEN") # Make sure HF_TOKEN is set in your environment
|
22 |
|
|
|
|
|
|
|
23 |
|
24 |
app = FastAPI(title="TIMIT Phoneme Transcription Leaderboard")
|
25 |
|
requirements.txt
CHANGED
@@ -1,69 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
aiohttp==3.8.4
|
2 |
aiosignal==1.3.1
|
3 |
async-timeout==4.0.2
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
cmake==3.26.4
|
8 |
-
contourpy==1.1.0
|
9 |
-
Cython==3.0.0
|
10 |
-
datasets==2.13.1
|
11 |
-
dill==0.3.6
|
12 |
-
filelock==3.12.2
|
13 |
-
fonttools==4.40.0
|
14 |
frozenlist==1.4.0
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
22 |
matplotlib==3.7.2
|
|
|
23 |
mpmath==1.3.0
|
24 |
-
multidict==6.0.4
|
25 |
-
multiprocess==0.70.14
|
26 |
networkx==3.1
|
27 |
-
|
28 |
-
|
29 |
-
# nvidia-cuda-cupti-cu11==11.7.101
|
30 |
-
# nvidia-cuda-nvrtc-cu11==11.7.99
|
31 |
-
# nvidia-cuda-runtime-cu11==11.7.99
|
32 |
-
nvidia-cudnn-cu11==8.5.0.96
|
33 |
-
nvidia-cufft-cu11==10.9.0.58
|
34 |
-
nvidia-curand-cu11==10.2.10.91
|
35 |
-
nvidia-cusolver-cu11==11.4.0.1
|
36 |
-
nvidia-cusparse-cu11==11.7.4.91
|
37 |
-
nvidia-nccl-cu11==2.14.3
|
38 |
-
nvidia-nvtx-cu11==11.7.91
|
39 |
-
packaging==23.1
|
40 |
-
pandas==2.0.3
|
41 |
-
Pillow==10.0.0
|
42 |
-
pyarrow==12.0.1
|
43 |
-
python-dateutil==2.8.2
|
44 |
-
pytz==2023.3
|
45 |
-
PyYAML==6.0.1
|
46 |
-
regex==2023.6.3
|
47 |
-
requests==2.31.0
|
48 |
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
gradio==2.8.0
|
64 |
-
gradio
|
65 |
-
pandas
|
66 |
-
transformers
|
67 |
-
evaluate
|
68 |
-
torch
|
69 |
-
torchaudio
|
|
|
1 |
+
# Core ML dependencies
|
2 |
+
torch==2.0.1
|
3 |
+
torchaudio
|
4 |
+
torchvision==0.15.2
|
5 |
+
transformers==4.46.3
|
6 |
+
tokenizers>=0.20,<0.21
|
7 |
+
safetensors>=0.4.1
|
8 |
+
evaluate==0.4.1
|
9 |
+
gradio==5.7.1
|
10 |
+
huggingface-hub==0.25.1
|
11 |
+
|
12 |
+
# Data processing
|
13 |
+
pandas==2.0.3
|
14 |
+
numpy==1.25.2
|
15 |
+
pyarrow==12.0.1
|
16 |
+
dill==0.3.6
|
17 |
+
datasets==2.13.1
|
18 |
+
|
19 |
+
# Utilities
|
20 |
+
tqdm==4.65.0
|
21 |
+
requests==2.31.0
|
22 |
+
regex==2023.6.3
|
23 |
+
PyYAML==6.0.1
|
24 |
+
python-dateutil==2.8.2
|
25 |
+
six==1.16.0
|
26 |
+
filelock==3.12.2
|
27 |
+
|
28 |
+
# HTTP and async
|
29 |
aiohttp==3.8.4
|
30 |
aiosignal==1.3.1
|
31 |
async-timeout==4.0.2
|
32 |
+
urllib3==2.0.4
|
33 |
+
yarl==1.9.2
|
34 |
+
multidict==6.0.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
frozenlist==1.4.0
|
36 |
+
|
37 |
+
# Text processing
|
38 |
+
xxhash==3.2.0
|
39 |
+
|
40 |
+
# Image processing
|
41 |
+
Pillow==10.0.0
|
42 |
+
|
43 |
+
# Math and scientific
|
44 |
matplotlib==3.7.2
|
45 |
+
sympy==1.12
|
46 |
mpmath==1.3.0
|
|
|
|
|
47 |
networkx==3.1
|
48 |
+
contourpy==1.1.0
|
49 |
+
kiwisolver==1.4.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
+
# Build tools and compilers
|
52 |
+
cmake==3.26.4
|
53 |
+
Cython==3.0.0
|
54 |
+
lit==16.0.6
|
55 |
+
|
56 |
+
|
57 |
+
# CUDA dependencies
|
58 |
+
# nvidia-cudnn-cu11==8.5.0.96
|
59 |
+
# nvidia-cufft-cu11==10.9.0.58
|
60 |
+
# nvidia-curand-cu11==10.2.10.91
|
61 |
+
# nvidia-cusolver-cu11==11.4.0.1
|
62 |
+
# nvidia-cusparse-cu11==11.7.4.91
|
63 |
+
# nvidia-nccl-cu11==2.14.3
|
64 |
+
# nvidia-nvtx-cu11==11.7.91
|
|
|
|
|
|
|
|
|
|
|
|
|
|