From 67edbf2520c79f378bdc4596fac10633796f3193 Mon Sep 17 00:00:00 2001 From: ChrisColeTech <33706157+ChrisColeTech@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:49:11 -0400 Subject: [PATCH] Update bulk_enhance_helpers.py --- modules/bulk_enhance_helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bulk_enhance_helpers.py b/modules/bulk_enhance_helpers.py index 787d5476..19b7f61b 100644 --- a/modules/bulk_enhance_helpers.py +++ b/modules/bulk_enhance_helpers.py @@ -75,10 +75,10 @@ def on_file_change(files, data_type): return gr.update(visible=False), gr.update(), gr.update(value=False) -def on_input_change(input_path, file_explorer): - if input_path: +def on_input_change(input, file_explorer): + if input: # Verify with normalised version of path - input_path = os.path.normpath(os.path.realpath(input_path)) + input_path = os.path.normpath(os.path.realpath(input)) if os.path.isdir(os.path.realpath(input_path)): # Return an empty list if input_path is a directory