Skip to content

Commit

Permalink
Update StreamlitUI.py
Browse files Browse the repository at this point in the history
moved check if input files are in list to correct position
  • Loading branch information
axelwalter authored Mar 5, 2024
1 parent 5809ed5 commit 914b702
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/workflow/StreamlitUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def upload_widget(
):
if files:
files_dir.mkdir(parents=True, exist_ok=True)
# in case of online mode a single file is returned -> put in list
if not isinstance(files, list):
files = [files]
for f in files:
# in case of online mode a single file is returned -> put in list
if not isinstance(files, list):
files = [files]
if f.name not in [
f.name for f in files_dir.iterdir()
] and f.name.endswith(file_type):
Expand Down

0 comments on commit 914b702

Please sign in to comment.