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