Funbi commited on
Commit
4222657
1 Parent(s): df1ec56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)