cdactvm commited on
Commit
211b952
·
verified ·
1 Parent(s): 2eaad68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -275,9 +275,9 @@ def transcribe_punjabi_30000(speech):
275
  def transcribe_punjabi_eng_model_30000(speech):
276
  trn = Transliterator(source='pan', target='eng', build_lookup=True)
277
  text = punjaib_modle_30000(speech)["text"]
278
- print("punjabi-->"+text)
279
- text = text.replace("[PAD]","")
280
- print("after pad removal-->"+text)
281
  if text is None:
282
  return "Error: ASR returned None"
283
  sentence = trn.transform(text)
 
275
  def transcribe_punjabi_eng_model_30000(speech):
276
  trn = Transliterator(source='pan', target='eng', build_lookup=True)
277
  text = punjaib_modle_30000(speech)["text"]
278
+ #print("punjabi-->"+text)
279
+ #text = text.replace("[PAD]","")
280
+ #print("after pad removal-->"+text)
281
  if text is None:
282
  return "Error: ASR returned None"
283
  sentence = trn.transform(text)