Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def get_transcribe(audio):
|
|
| 22 |
|
| 23 |
#_, probs = whisper_model.detect_language(mel)
|
| 24 |
|
| 25 |
-
options = whisper.DecodingOptions(
|
| 26 |
result = whisper.decode(whisper_model, mel, options)
|
| 27 |
|
| 28 |
print(result)
|
|
|
|
| 22 |
|
| 23 |
#_, probs = whisper_model.detect_language(mel)
|
| 24 |
|
| 25 |
+
options = whisper.DecodingOptions(task="translate", fp16 = False)
|
| 26 |
result = whisper.decode(whisper_model, mel, options)
|
| 27 |
|
| 28 |
print(result)
|