Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from gtts import gTTS
|
|
8 |
pipe = pipeline(model="freeja/lab2-whisper-sv")
|
9 |
|
10 |
def transcribe_audio(audio,language):
|
11 |
-
transcribed = pipe(audio
|
12 |
result = "Transcribed text\n"
|
13 |
result += transcribed + "\n"
|
14 |
result += "Translated text\n"
|
|
|
8 |
pipe = pipeline(model="freeja/lab2-whisper-sv")
|
9 |
|
10 |
def transcribe_audio(audio,language):
|
11 |
+
transcribed = pipe(audio)["text"]
|
12 |
result = "Transcribed text\n"
|
13 |
result += transcribed + "\n"
|
14 |
result += "Translated text\n"
|