From f04a1435667f0b13ee54dcf411e6f43cbafbdde4 Mon Sep 17 00:00:00 2001 From: Matthew Maxwell Date: Fri, 20 Dec 2024 16:50:16 -0800 Subject: [PATCH] fixed python codestyle --- recipes/llm-voice-assistant/python/windows_gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/llm-voice-assistant/python/windows_gui.py b/recipes/llm-voice-assistant/python/windows_gui.py index 313a86c..7c46e60 100644 --- a/recipes/llm-voice-assistant/python/windows_gui.py +++ b/recipes/llm-voice-assistant/python/windows_gui.py @@ -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))