fffiloni commited on
Commit
9f29da8
1 Parent(s): 01f0cbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def get_transcribe(audio):
22
 
23
  #_, probs = whisper_model.detect_language(mel)
24
 
25
- options = whisper.DecodingOptions(language="en", fp16 = False)
26
  result = whisper.decode(whisper_model, mel, options)
27
 
28
  print(result)
 
22
 
23
  #_, probs = whisper_model.detect_language(mel)
24
 
25
+ options = whisper.DecodingOptions(task="translate", fp16 = False)
26
  result = whisper.decode(whisper_model, mel, options)
27
 
28
  print(result)