Update app.py
Browse files
app.py
CHANGED
@@ -86,20 +86,24 @@ try:
|
|
86 |
|
87 |
except Exception as e:
|
88 |
print(f"Error loading or processing dataset: {str(e)}")
|
89 |
-
print("Attempting to
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
|
|
103 |
|
104 |
# Training function
|
105 |
def train_step(state, batch, rng):
|
|
|
86 |
|
87 |
except Exception as e:
|
88 |
print(f"Error loading or processing dataset: {str(e)}")
|
89 |
+
print("Attempting to find dataset...")
|
90 |
+
|
91 |
+
# List contents of current directory and parent directories
|
92 |
+
print("Current directory contents:")
|
93 |
+
print(os.listdir('.'))
|
94 |
+
print("Parent directory contents:")
|
95 |
+
print(os.listdir('..'))
|
96 |
+
print("Root directory contents:")
|
97 |
+
print(os.listdir('/'))
|
98 |
+
|
99 |
+
# Try to find any directory that might contain the dataset
|
100 |
+
for root, dirs, files in os.walk('/'):
|
101 |
+
if 'montevideo' in dirs:
|
102 |
+
print(f"Found 'montevideo' directory at: {os.path.join(root, 'montevideo')}")
|
103 |
+
print(f"Contents: {os.listdir(os.path.join(root, 'montevideo'))}")
|
104 |
+
|
105 |
+
raise ValueError("Unable to locate or load the dataset. Please check the dataset path and permissions.")
|
106 |
+
|
107 |
|
108 |
# Training function
|
109 |
def train_step(state, batch, rng):
|