Skip to content

Commit

Permalink
updated AI name to not show when too long
Browse files Browse the repository at this point in the history
  • Loading branch information
matt200-ok committed Dec 21, 2024
1 parent 0a0da67 commit 319c860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/llm-voice-assistant/python/windows_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def compute_amplitude(samples, sample_max=32768, scale=1.0):
height_in, width_in = self.pcm_in.getmaxyx()
height_out, width_out = self.pcm_out.getmaxyx()
self.pcm_in.addstr(1, 1, 'You'.center(18))
self.pcm_out.addstr(1, 1, (f'{self.model_name}' if self.model_name else 'AI').center(18))
self.pcm_out.addstr(1, 1, (f'{self.model_name}' if self.model_name and len(self.model_name) < 18 else 'AI').center(18))
for j in range(width_in - 4):
for i in range(int(volume_in * (height_in - 4))):
self.pcm_in.addch(height_in - 2 - i, 2 + j, '▄', curses.color_pair(3))
Expand Down

0 comments on commit 319c860

Please sign in to comment.