Spaces:
Sleeping
Sleeping
vineelpratap
commited on
Commit
•
a45002a
1
Parent(s):
6c45092
Update asr.py
Browse files
asr.py
CHANGED
@@ -106,7 +106,7 @@ def transcribe(
|
|
106 |
with torch.no_grad():
|
107 |
outputs = model(**inputs).logits
|
108 |
|
109 |
-
if lang_code != "eng":
|
110 |
ids = torch.argmax(outputs, dim=-1)[0]
|
111 |
transcription = processor.decode(ids)
|
112 |
else:
|
@@ -123,6 +123,6 @@ ASR_EXAMPLES = [
|
|
123 |
]
|
124 |
|
125 |
ASR_NOTE = """
|
126 |
-
The above demo
|
127 |
-
Checkout the instructions [here](https://huggingface.co/facebook/mms-1b-all) on how to run LM decoding for
|
128 |
"""
|
|
|
106 |
with torch.no_grad():
|
107 |
outputs = model(**inputs).logits
|
108 |
|
109 |
+
if lang_code != "eng" and False:
|
110 |
ids = torch.argmax(outputs, dim=-1)[0]
|
111 |
transcription = processor.decode(ids)
|
112 |
else:
|
|
|
123 |
]
|
124 |
|
125 |
ASR_NOTE = """
|
126 |
+
The above demo doesn't use beam-search decoding using a language model.
|
127 |
+
Checkout the instructions [here](https://huggingface.co/facebook/mms-1b-all) on how to run LM decoding for better accuracy.
|
128 |
"""
|