Spaces:
Running
Running
arunasrivastava
commited on
Commit
·
2e03a0a
1
Parent(s):
6d5649b
monorepo
Browse files
main.py
CHANGED
@@ -12,6 +12,8 @@ import json
|
|
12 |
import uuid
|
13 |
import os
|
14 |
from pathlib import Path
|
|
|
|
|
15 |
|
16 |
app = FastAPI(title="TIMIT Phoneme Transcription Leaderboard")
|
17 |
|
@@ -38,7 +40,9 @@ PATHS = {
|
|
38 |
}
|
39 |
|
40 |
# Initialize evaluation metric
|
41 |
-
phone_errors = evaluate.load("ginic/phone_errors")
|
|
|
|
|
42 |
|
43 |
class TimitDataManager:
|
44 |
"""Handles all TIMIT dataset operations"""
|
|
|
12 |
import uuid
|
13 |
import os
|
14 |
from pathlib import Path
|
15 |
+
import os
|
16 |
+
hf_token = os.environ.get("HF_TOKEN")
|
17 |
|
18 |
app = FastAPI(title="TIMIT Phoneme Transcription Leaderboard")
|
19 |
|
|
|
40 |
}
|
41 |
|
42 |
# Initialize evaluation metric
|
43 |
+
# phone_errors = evaluate.load("ginic/phone_errors")
|
44 |
+
phone_errors = evaluate.load("ginic/phone_errors", download_config=evaluate.DownloadConfig(token=hf_token))
|
45 |
+
|
46 |
|
47 |
class TimitDataManager:
|
48 |
"""Handles all TIMIT dataset operations"""
|