cdactvm commited on
Commit
066ea89
·
verified ·
1 Parent(s): 802c87d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -273,8 +273,9 @@ def transcribe_punjabi_30000(speech):
273
  return text
274
 
275
  def transcribe_punjabi_eng_model_30000(speech):
276
- trn = Transliterator(source='pun', target='eng', build_lookup=True)
277
  text = punjaib_modle_30000(speech)["text"]
 
278
  if text is None:
279
  return "Error: ASR returned None"
280
  sentence = trn.transform(text)
 
273
  return text
274
 
275
  def transcribe_punjabi_eng_model_30000(speech):
276
+ trn = Transliterator(source='pa', target='eng', build_lookup=True)
277
  text = punjaib_modle_30000(speech)["text"]
278
+ text = text.replace("[PAD]","")
279
  if text is None:
280
  return "Error: ASR returned None"
281
  sentence = trn.transform(text)