Skip to content

Commit

Permalink
fixed python codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
matt200-ok committed Dec 21, 2024
1 parent 319c860 commit f04a143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 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,8 @@ 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 and len(self.model_name) < 18 else 'AI').center(18))
model_name = f'{self.model_name}' if self.model_name and len(self.model_name) < 18 else 'AI'
self.pcm_out.addstr(1, 1, model_name.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 f04a143

Please sign in to comment.