Spaces:
unijoh
/
Runtime error

vineelpratap commited on
Commit
a45002a
1 Parent(s): 6c45092

Update asr.py

Browse files
Files changed (1) hide show
  1. asr.py +3 -3
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 uses beam-search decoding with LM for English and greedy decoding results for all other languages.
127
- Checkout the instructions [here](https://huggingface.co/facebook/mms-1b-all) on how to run LM decoding for other languages.
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
  """