Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def transcribe(audio):
|
|
33 |
print(f"Detected language: {max(probs, key=probs.get)}")
|
34 |
|
35 |
# decode the audio
|
36 |
-
options = whisper.DecodingOptions(fp16 =
|
37 |
result = whisper.decode(model, mel, options)
|
38 |
return result.text
|
39 |
|
|
|
33 |
print(f"Detected language: {max(probs, key=probs.get)}")
|
34 |
|
35 |
# decode the audio
|
36 |
+
options = whisper.DecodingOptions(fp16 = True)
|
37 |
result = whisper.decode(model, mel, options)
|
38 |
return result.text
|
39 |
|