Revert "Ruff fixes"

This reverts commit 10145f7f2b.
This commit is contained in:
Pablo Hellmann
2026-06-17 16:00:03 +02:00
parent 10145f7f2b
commit fbc1f66805
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ class PreviewManager:
"""Manages WebSocket connections for step-based live preview streaming.
Each denoising step, diffusers_callback calls push_step() from the
generation thread. Image encoding happens there (non-blocking for
generation thread. Image encoding happens there (nonblocking for
TAESD, the default preview method) and the binary JPEG + JSON progress
are dispatched to the event loop via run_coroutine_threadsafe().
"""
@@ -39,7 +39,7 @@ class PreviewManager:
self._client_hidden = not data.get('visible', True)
# ------------------------------------------------------------------
# Push from generation thread (thread-safe)
# Push from generation thread (threadsafe)
# ------------------------------------------------------------------
def push_step(self, step: int, steps: int, state):
+1 -1
View File
@@ -567,7 +567,7 @@ def create_settings(cmd_opts):
options_templates.update(options_section(('live-preview', "Live Previews"), {
"show_progress_every_n_steps": OptionInfo(1, "Live preview display period", gr.Slider, {"minimum": 0, "maximum": 20, "step": 1, "visible": False}),
"show_progress_type": OptionInfo("TAESD", "Live preview method", gr.Dropdown, {"choices": ["None", "Simple", "Approximate", "TAESD", "Full"]}),
"live_preview_refresh_period": OptionInfo(500, "Progress update period (ms)", gr.Slider, {"minimum": 0, "maximum": 5000, "step": 25}),
"live_preview_refresh_period": OptionInfo(500, "Progress update period of polling (ms)", gr.Slider, {"minimum": 0, "maximum": 5000, "step": 25}),
"live_preview_transport": OptionInfo("Polling", "Preview transport", gr.Dropdown, {"choices": ["Polling", "WebSocket"]}),
"live_preview_ws_interval": OptionInfo(1, "WebSocket preview step interval", gr.Slider, {"minimum": 1, "maximum": 20, "step": 1}),
"taesd_variant": OptionInfo(shared_items.sd_taesd_items()[0], "TAESD variant", gr.Dropdown, {"choices": shared_items.sd_taesd_items()}),