Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def prepare_dataset(extracted_folder):
|
|
50 |
folder_path = os.path.join(neuronii_path, disease_folder)
|
51 |
|
52 |
# Check if the subfolder exists
|
53 |
-
|
54 |
print(f"Folder not found: {folder_path}")
|
55 |
continue # Skip this folder if it's not foun
|
56 |
label = {'alzheimers_dataset': 0, 'parkinsons_dataset': 1, 'MSjpg': 2}[disease_folder]
|
|
|
50 |
folder_path = os.path.join(neuronii_path, disease_folder)
|
51 |
|
52 |
# Check if the subfolder exists
|
53 |
+
if not os.path.exists(folder_path):
|
54 |
print(f"Folder not found: {folder_path}")
|
55 |
continue # Skip this folder if it's not foun
|
56 |
label = {'alzheimers_dataset': 0, 'parkinsons_dataset': 1, 'MSjpg': 2}[disease_folder]
|