Skip to content

Commit 602dec3

Browse files
committed
fix AI label
1 parent c3fd0c9 commit 602dec3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

assistant_v2/src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ use open;
1616
use speakstream::ss::SpeakStream;
1717
use std::error::Error;
1818
use std::path::PathBuf;
19-
use std::time::Instant;
2019
use std::sync::atomic::{AtomicBool, Ordering};
2120
use std::sync::{Arc, Mutex};
21+
use std::time::Instant;
2222
use tracing_subscriber::{fmt, layer::SubscriberExt, util::SubscriberInitExt, EnvFilter};
2323

2424
mod record;
@@ -236,7 +236,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
236236
if let Some(text) = &text.text {
237237
if let Some(text) = &text.value {
238238
if !displayed_ai_label {
239-
print!("{}", "AI: ".truecolor(0, 0, 255));
239+
println!("{}", "AI: ".truecolor(0, 0, 255));
240240
displayed_ai_label = true;
241241
}
242242
print!("{}", text);
@@ -303,8 +303,9 @@ fn start_ptt_thread(
303303
}
304304
} else {
305305
println!(
306-
"{}",
307-
"User recording too short. Aborting transcription and LLM response.".truecolor(255, 0, 0)
306+
"{}",
307+
"User recording too short. Aborting transcription and LLM response."
308+
.truecolor(255, 0, 0)
308309
);
309310
}
310311
}

0 commit comments

Comments
 (0)