cdactvm commited on
Commit
593049e
·
verified ·
1 Parent(s): a4c77a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -290,7 +290,7 @@ def transcribe_punjabi_eng_model_30000(speech):
290
 
291
  def transcribe_punjabi_70000_aug(speech):
292
  text = punjaib_modle_70000_aug(speech)["text"]
293
- text = text.replace("[PAD]","")
294
  if text is None:
295
  return "Error: ASR returned None"
296
  return text
@@ -298,7 +298,7 @@ def transcribe_punjabi_70000_aug(speech):
298
  def transcribe_punjabi_eng_model_70000_aug(speech):
299
  trn = Transliterator(source='pan', target='eng', build_lookup=True)
300
  text = punjaib_modle_70000_aug(speech)["text"]
301
- text = text.replace("[PAD]","")
302
  if text is None:
303
  return "Error: ASR returned None"
304
  sentence = trn.transform(text)
 
290
 
291
  def transcribe_punjabi_70000_aug(speech):
292
  text = punjaib_modle_70000_aug(speech)["text"]
293
+ text = text.replace("<s>","")
294
  if text is None:
295
  return "Error: ASR returned None"
296
  return text
 
298
  def transcribe_punjabi_eng_model_70000_aug(speech):
299
  trn = Transliterator(source='pan', target='eng', build_lookup=True)
300
  text = punjaib_modle_70000_aug(speech)["text"]
301
+ text = text.replace("<s>","")
302
  if text is None:
303
  return "Error: ASR returned None"
304
  sentence = trn.transform(text)