From 128a0a6824046eec14f1592d307e87e4cb025b3a Mon Sep 17 00:00:00 2001 From: Jakub Racek Date: Thu, 9 Nov 2023 17:11:33 +0100 Subject: [PATCH 1/2] Add '-l auto' to talk-llama example --- examples/talk-llama/talk-llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/talk-llama/talk-llama.cpp b/examples/talk-llama/talk-llama.cpp index 8c41ef542dc..edad81ffbf9 100644 --- a/examples/talk-llama/talk-llama.cpp +++ b/examples/talk-llama/talk-llama.cpp @@ -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); From 4f48fd98931f455e346d9989cbb7983c90102bf9 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 9 Nov 2023 19:21:16 +0200 Subject: [PATCH 2/2] Update examples/talk-llama/talk-llama.cpp --- examples/talk-llama/talk-llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/talk-llama/talk-llama.cpp b/examples/talk-llama/talk-llama.cpp index edad81ffbf9..af971cabdd4 100644 --- a/examples/talk-llama/talk-llama.cpp +++ b/examples/talk-llama/talk-llama.cpp @@ -248,7 +248,7 @@ int main(int argc, char ** argv) { return 1; } - if (params.language != "auto" && 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);