Fix a clang tidy warning

PiperOrigin-RevId: 646498062
This commit is contained in:
The gemma.cpp Authors 2024-06-25 09:02:22 -07:00 committed by Copybara-Service
parent ef786f1bfc
commit 7fc8ddf825
1 changed files with 16 additions and 12 deletions

View File

@ -184,19 +184,23 @@ void Run(LoaderArgs& loader, InferenceArgs& inference, AppArgs& app) {
if (app.verbosity >= 1) { if (app.verbosity >= 1) {
const std::string instructions = const std::string instructions =
"*Usage*\n" std::string(
" Enter an instruction and press enter (%C resets conversation, " "*Usage*\n"
"%Q quits).\n" + " Enter an instruction and press enter (%C resets conversation, "
(inference.multiturn == 0 "%Q quits).\n")
? std::string(" Since multiturn is set to 0, conversation will " .append(
(inference.multiturn == 0
? std::string(
" Since multiturn is set to 0, conversation will "
"automatically reset every turn.\n\n") "automatically reset every turn.\n\n")
: "\n") + : "\n"))
"*Examples*\n" .append(
" - Write an email to grandma thanking her for the cookies.\n" "*Examples*\n"
" - What are some historical attractions to visit around " " - Write an email to grandma thanking her for the cookies.\n"
"Massachusetts?\n" " - What are some historical attractions to visit around "
" - Compute the nth fibonacci number in javascript.\n" "Massachusetts?\n"
" - Write a standup comedy bit about GPU programming.\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 std::cout << "\033[2J\033[1;1H" // clear screen
<< kAsciiArtBanner << "\n\n"; << kAsciiArtBanner << "\n\n";