Spaces:
Runtime error
Runtime error
Commit
·
e638ce1
1
Parent(s):
f96d7d0
Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,6 @@ def translate(audio):
|
|
23 |
translate_options = whisper.DecodingOptions(task="translate", fp16 = False)
|
24 |
|
25 |
translation = whisper.decode(whisper_model, mel, translate_options)
|
26 |
-
|
27 |
-
print("Language Spoken: " + transcription.language)
|
28 |
|
29 |
print("Translated: " + translation.text)
|
30 |
return translation.text
|
|
|
23 |
translate_options = whisper.DecodingOptions(task="translate", fp16 = False)
|
24 |
|
25 |
translation = whisper.decode(whisper_model, mel, translate_options)
|
|
|
|
|
26 |
|
27 |
print("Translated: " + translation.text)
|
28 |
return translation.text
|