Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,8 @@ if uploaded_zip_file is not None:
|
|
96 |
|
97 |
# Get a list of subdirectories inside the 'outputs' directory
|
98 |
subdirectories = [subdir for subdir in os.listdir(outputs_directory)
|
99 |
-
|
100 |
-
|
101 |
# Use the first (or only) subdirectory, or None if there are no subdirectories
|
102 |
first_subdirectory = subdirectories[0] if subdirectories else None
|
103 |
|
|
|
96 |
|
97 |
# Get a list of subdirectories inside the 'outputs' directory
|
98 |
subdirectories = [subdir for subdir in os.listdir(outputs_directory)
|
99 |
+
if os.path.isdir(os.path.join(outputs_directory, subdir))]
|
100 |
+
|
101 |
# Use the first (or only) subdirectory, or None if there are no subdirectories
|
102 |
first_subdirectory = subdirectories[0] if subdirectories else None
|
103 |
|