Spaces:
Runtime error
Runtime error
Pavankalyan
commited on
Commit
•
17f3c05
1
Parent(s):
0b3bc06
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,9 @@ from transformers import pipeline
|
|
33 |
|
34 |
p = pipeline(model="openai/whisper-medium")
|
35 |
|
36 |
-
def transcribe(audio):
|
|
|
|
|
37 |
if audio["filepath"]:
|
38 |
audio["text"] = p(audio["filepath"])['text']
|
39 |
ans = predict(audio["text"])
|
|
|
33 |
|
34 |
p = pipeline(model="openai/whisper-medium")
|
35 |
|
36 |
+
def transcribe(text,audio):
|
37 |
+
print(text)
|
38 |
+
print(audio)
|
39 |
if audio["filepath"]:
|
40 |
audio["text"] = p(audio["filepath"])['text']
|
41 |
ans = predict(audio["text"])
|