Spaces:
Runtime error
Runtime error
Commit
·
d5c74e2
1
Parent(s):
7c48400
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ translation_pipe = pipeline(model="Helsinki-NLP/opus-mt-sv-en")
|
|
| 7 |
|
| 8 |
def transcribe_and_translate(audio):
|
| 9 |
transcription = transcription_pipe(audio)["text"]
|
| 10 |
-
translation = translation_pipe(transcription)[
|
| 11 |
return transcription, translation
|
| 12 |
|
| 13 |
iface = gr.Interface(
|
|
|
|
| 7 |
|
| 8 |
def transcribe_and_translate(audio):
|
| 9 |
transcription = transcription_pipe(audio)["text"]
|
| 10 |
+
translation = translation_pipe(transcription)[0]['translation_text']
|
| 11 |
return transcription, translation
|
| 12 |
|
| 13 |
iface = gr.Interface(
|