mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-24 23:09:05 +01:00
main : pass nullptr when regex is empty (#2070)
This commit is contained in:
parent
a750868428
commit
b0c3cbf2e8
@ -1068,7 +1068,7 @@ int main(int argc, char ** argv) {
|
||||
|
||||
wparams.tdrz_enable = params.tinydiarize; // [TDRZ]
|
||||
|
||||
wparams.suppress_regex = params.suppress_regex.c_str();
|
||||
wparams.suppress_regex = params.suppress_regex.empty() ? nullptr : params.suppress_regex.c_str();
|
||||
|
||||
wparams.initial_prompt = params.prompt.c_str();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user