Skip to content

Commit

Permalink
talk-llama : add language auto detect (ggerganov#1467)
Browse files Browse the repository at this point in the history
* Add '-l auto' to talk-llama example

* Update examples/talk-llama/talk-llama.cpp

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
  • Loading branch information
2 people authored and felrock committed Nov 18, 2023
1 parent 724aae7 commit e3c1340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/talk-llama/talk-llama.cpp
Expand Up @@ -248,7 +248,7 @@ int main(int argc, char ** argv) {
return 1;
}

if (whisper_lang_id(params.language.c_str()) == -1) {
if (params.language != "auto" && whisper_lang_id(params.language.c_str()) == -1) {
fprintf(stderr, "error: unknown language '%s'\n", params.language.c_str());
whisper_print_usage(argc, argv, params);
exit(0);
Expand Down

0 comments on commit e3c1340

Please sign in to comment.