Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ from transformers import pipeline
|
|
| 3 |
p1= pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-odia_v1")
|
| 4 |
|
| 5 |
def transcribe_odiya(speech):
|
| 6 |
-
print (p1(speech))
|
| 7 |
-
text =
|
| 8 |
#text=cleanhtml(text)
|
| 9 |
return text
|
| 10 |
def sel_lng(lng,mic=None, file=None):
|
|
|
|
| 3 |
p1= pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-odia_v1")
|
| 4 |
|
| 5 |
def transcribe_odiya(speech):
|
| 6 |
+
#print (p1(speech))
|
| 7 |
+
text = p1(speech)["text"]
|
| 8 |
#text=cleanhtml(text)
|
| 9 |
return text
|
| 10 |
def sel_lng(lng,mic=None, file=None):
|