From 7fc8ddf825100f9aa41d2e462322a903d9361419 Mon Sep 17 00:00:00 2001 From: "The gemma.cpp Authors" Date: Tue, 25 Jun 2024 09:02:22 -0700 Subject: [PATCH] Fix a clang tidy warning PiperOrigin-RevId: 646498062 --- gemma/run.cc | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/gemma/run.cc b/gemma/run.cc index acc3568..78e6734 100644 --- a/gemma/run.cc +++ b/gemma/run.cc @@ -184,19 +184,23 @@ void Run(LoaderArgs& loader, InferenceArgs& inference, AppArgs& app) { if (app.verbosity >= 1) { const std::string instructions = - "*Usage*\n" - " Enter an instruction and press enter (%C resets conversation, " - "%Q quits).\n" + - (inference.multiturn == 0 - ? std::string(" Since multiturn is set to 0, conversation will " + std::string( + "*Usage*\n" + " Enter an instruction and press enter (%C resets conversation, " + "%Q quits).\n") + .append( + (inference.multiturn == 0 + ? std::string( + " Since multiturn is set to 0, conversation will " "automatically reset every turn.\n\n") - : "\n") + - "*Examples*\n" - " - Write an email to grandma thanking her for the cookies.\n" - " - What are some historical attractions to visit around " - "Massachusetts?\n" - " - Compute the nth fibonacci number in javascript.\n" - " - Write a standup comedy bit about GPU programming.\n"; + : "\n")) + .append( + "*Examples*\n" + " - Write an email to grandma thanking her for the cookies.\n" + " - What are some historical attractions to visit around " + "Massachusetts?\n" + " - Compute the nth fibonacci number in javascript.\n" + " - Write a standup comedy bit about GPU programming.\n"); std::cout << "\033[2J\033[1;1H" // clear screen << kAsciiArtBanner << "\n\n";