Skip to content

Commit

Permalink
Update bulk_enhance_helpers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisColeTech committed Aug 21, 2024
1 parent 07ab8a4 commit b5e73ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/bulk_enhance_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,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
Expand Down

0 comments on commit b5e73ff

Please sign in to comment.