Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def transcribe(audio):
|
|
27 |
|
28 |
|
29 |
# decode the audio
|
30 |
-
options = whisper.DecodingOptions(fp16 = False)
|
31 |
result = whisper.decode(model, mel, options)
|
32 |
word= result.text
|
33 |
trans = en_fr_translator(word)
|
|
|
27 |
|
28 |
|
29 |
# decode the audio
|
30 |
+
options = whisper.DecodingOptions(fp16 = False,task= "translate")
|
31 |
result = whisper.decode(model, mel, options)
|
32 |
word= result.text
|
33 |
trans = en_fr_translator(word)
|