Spaces:
Sleeping
Sleeping
Commit
·
5b4148d
1
Parent(s):
f456cb1
troubleshooting the detect language part
Browse files
app.py
CHANGED
@@ -55,6 +55,7 @@ def predict(audio, language, mic_audio=None):
|
|
55 |
|
56 |
options = whisper.DecodingOptions(fp16 = False, language = outLanguage)
|
57 |
result = whisper.decode(model, mel, options)
|
|
|
58 |
|
59 |
|
60 |
|
|
|
55 |
|
56 |
options = whisper.DecodingOptions(fp16 = False, language = outLanguage)
|
57 |
result = whisper.decode(model, mel, options)
|
58 |
+
outLanguage = results.language
|
59 |
|
60 |
|
61 |
|