Spaces:
Runtime error
Runtime error
Commit
·
bd97165
1
Parent(s):
3420bec
Update app.py
Browse files
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
|