Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,9 +90,9 @@ if IS_COLAB:
|
|
| 90 |
|
| 91 |
else:
|
| 92 |
# **IMPORTANT: Update these paths to the actual location of your data!**
|
| 93 |
-
train_dir = "train" # Replace with your actual path
|
| 94 |
-
val_dir = "val" # Replace with your actual path
|
| 95 |
-
test_dir = "test" # Replace with your actual path
|
| 96 |
|
| 97 |
if not os.path.exists(train_dir):
|
| 98 |
print(f"Error: Training data directory not found at {train_dir}")
|
|
@@ -346,3 +346,4 @@ except KeyboardInterrupt:
|
|
| 346 |
except Exception as e:
|
| 347 |
print(f"An error occurred during training: {e}")
|
| 348 |
print("Please check your data and model configuration.")
|
|
|
|
|
|
| 90 |
|
| 91 |
else:
|
| 92 |
# **IMPORTANT: Update these paths to the actual location of your data!**
|
| 93 |
+
train_dir = "./train" # Replace with your actual path
|
| 94 |
+
val_dir = "./val" # Replace with your actual path
|
| 95 |
+
test_dir = "./test" # Replace with your actual path
|
| 96 |
|
| 97 |
if not os.path.exists(train_dir):
|
| 98 |
print(f"Error: Training data directory not found at {train_dir}")
|
|
|
|
| 346 |
except Exception as e:
|
| 347 |
print(f"An error occurred during training: {e}")
|
| 348 |
print("Please check your data and model configuration.")
|
| 349 |
+
|