cdactvm commited on
Commit
50a7cb9
·
verified ·
1 Parent(s): d4af6bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -267,6 +267,7 @@ def process_transcription(input_sentence):
267
 
268
  def transcribe_punjabi_30000(speech):
269
  text = punjaib_modle_30000(speech)["text"]
 
270
  if text is None:
271
  return "Error: ASR returned None"
272
  return text
 
267
 
268
  def transcribe_punjabi_30000(speech):
269
  text = punjaib_modle_30000(speech)["text"]
270
+ text = text.replace("[PAD]","")
271
  if text is None:
272
  return "Error: ASR returned None"
273
  return text