Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def transcribe(audio):
|
|
18 |
print(f"Detected language: {max(probs, key=probs.get)}")
|
19 |
|
20 |
# decode the audio
|
21 |
-
options = whisper.DecodingOptions()
|
22 |
result = whisper.decode(model, mel, options)
|
23 |
return result.text
|
24 |
|
|
|
18 |
print(f"Detected language: {max(probs, key=probs.get)}")
|
19 |
|
20 |
# decode the audio
|
21 |
+
options = whisper.DecodingOptions(fp16 = False)
|
22 |
result = whisper.decode(model, mel, options)
|
23 |
return result.text
|
24 |
|