frogcho123 commited on
Commit
bd97165
1 Parent(s): 3420bec

Update app.py

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