From 3d8af5180d77c7eae852f5794da47e0ce1afce8e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 25 May 2025 17:57:58 +0000 Subject: [PATCH] fix: Correct IndentationError in modules/ui.py Removes a duplicated 'if not modules.globals.map_faces:' line within the create_webcam_preview function. This error was causing a syntax issue and preventing the application from running correctly, particularly in webcam mode. --- modules/ui.py | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ui.py b/modules/ui.py index 86584e7..6f50274 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1013,7 +1013,6 @@ def create_webcam_preview(camera_index: int): temp_frame, PREVIEW.winfo_width(), PREVIEW.winfo_height() ) - if not modules.globals.map_faces: if not modules.globals.map_faces: # Case 1: map_faces is False - source_face_obj_for_cam and source_frame_full_for_cam are pre-loaded if source_face_obj_for_cam and source_frame_full_for_cam is not None: # Check if valid after pre-loading