Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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='
|
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)
|