frogcho123 commited on
Commit
3061fe2
1 Parent(s): 0123058

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def translate_voice(file, target_lang):
20
 
21
  # Proceed with your language detection and decoding
22
  _, probs = model.detect_language(mel)
23
- options = whisper.DecodingOptions()
24
  result = whisper.decode(model, mel, options)
25
 
26
  text = result.text
 
20
 
21
  # Proceed with your language detection and decoding
22
  _, probs = model.detect_language(mel)
23
+ options = whisper.DecodingOptions(fp16 = False)
24
  result = whisper.decode(model, mel, options)
25
 
26
  text = result.text