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