change language_detection_threshold type to float#1188
Conversation
|
Hello, what is the use case where it needs to be supplied as |
|
There's no use case for |
|
I see your point, thanks for noticing faster-whisper/faster_whisper/transcribe.py Line 298 in 8327d8c also I don't think the test is needed, the number of invalid input combos is too large to have tests for all of them, what do you think? |
|
Sure, I'll have a look in a bit!
…On Wed, 4 Dec 2024 at 19:00, Mahmoud Ashraf ***@***.***> wrote:
I see your point, thanks for noticing
for consistency can you also review other occurrences of this case? these
are some examples
https://github.com/SYSTRAN/faster-whisper/blob/8327d8cc647266ed66f6cd878cf97eccface7351/faster_whisper/transcribe.py#L298
also I don't think the test is needed, the number of invalid input combos
is too large to have tests for all of them, what do you think?
—
Reply to this email directly, view it on GitHub
<#1188 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG7SUH3PYPH6G46ADVZIDIT2D3OGDAVCNFSM6AAAAABS7VYY6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJWHE4DENRRGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Cannot be an optional parameter
5f251c9 to
5dfbdf7
Compare
From openai/whisper#676, the use case of |
language_detection_thresholdcan't be supplied asNoneasdetect_languagecompares it with afloat.Change parameter type in
WhisperModelto reflect this.Added test to confirm this behavior.