From: Georgi Gerganov Date: Tue, 6 Feb 2024 17:56:12 +0000 (+0200) Subject: talk-llama : stream response (#1121) X-Git-Tag: upstream/1.7.4~1047 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=434b8f3b96532d219cecc1ecfd93629e8cf086fa;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp talk-llama : stream response (#1121) --- diff --git a/examples/talk-llama/talk-llama.cpp b/examples/talk-llama/talk-llama.cpp index d418d0c3..8942a3fc 100644 --- a/examples/talk-llama/talk-llama.cpp +++ b/examples/talk-llama/talk-llama.cpp @@ -719,6 +719,7 @@ int main(int argc, char ** argv) { text_to_speak += llama_token_to_piece(ctx_llama, id); printf("%s", llama_token_to_piece(ctx_llama, id).c_str()); + fflush(stdout); } }