Spaces:
Running
on
A10G
Running
on
A10G
vineelpratap
commited on
Commit
•
1d571fd
1
Parent(s):
7bcf8d7
Update asr.py
Browse files
asr.py
CHANGED
@@ -21,14 +21,14 @@ model = Wav2Vec2ForCTC.from_pretrained(MODEL_ID)
|
|
21 |
|
22 |
|
23 |
lm_decoding_config = {}
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
|
33 |
# allow language model decoding for specific languages
|
34 |
lm_decode_isos = ["eng"]
|
|
|
21 |
|
22 |
|
23 |
lm_decoding_config = {}
|
24 |
+
lm_decoding_configfile = hf_hub_download(
|
25 |
+
repo_id="facebook/mms-cclms",
|
26 |
+
filename="decoding_config.json",
|
27 |
+
subfolder="mms-1b-all",
|
28 |
+
)
|
29 |
+
|
30 |
+
with open(lm_decoding_configfile) as f:
|
31 |
+
lm_decoding_config = json.loads(f.read())
|
32 |
|
33 |
# allow language model decoding for specific languages
|
34 |
lm_decode_isos = ["eng"]
|