Dileep7729 commited on
Commit
cadf48b
·
verified ·
1 Parent(s): 8c96eb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -24,9 +24,15 @@ def find_dataset_path(root_dir):
24
  return root
25
  return None
26
 
27
- dataset_path = find_dataset_path("data")
 
28
  if dataset_path is None:
29
- raise FileNotFoundError("Expected 'safe' and 'unsafe' folders not found after extraction. Please check the Data.zip structure.")
 
 
 
 
 
30
  print(f"Dataset path found: {dataset_path}")
31
 
32
  # Step 3: Define Custom Dataset Class
@@ -151,3 +157,4 @@ if __name__ == "__main__":
151
 
152
 
153
 
 
 
24
  return root
25
  return None
26
 
27
+ # Look for 'safe' and 'unsafe' inside 'data/Data'
28
+ dataset_path = find_dataset_path("data/Data")
29
  if dataset_path is None:
30
+ print("Debugging extracted structure:")
31
+ for root, dirs, files in os.walk("data"):
32
+ print(f"Root: {root}")
33
+ print(f"Directories: {dirs}")
34
+ print(f"Files: {files}")
35
+ raise FileNotFoundError("Expected 'safe' and 'unsafe' folders not found inside 'data/Data'. Please check the Data.zip structure.")
36
  print(f"Dataset path found: {dataset_path}")
37
 
38
  # Step 3: Define Custom Dataset Class
 
157
 
158
 
159
 
160
+