Update bulk_enhance_helpers.py

This commit is contained in:
ChrisColeTech 2024-08-20 21:49:11 -04:00 committed by GitHub
parent 4b90d7013d
commit 67edbf2520
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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