Spaces:
Running
Running
raymondEDS
commited on
Commit
·
1d2c7e0
1
Parent(s):
f49f36a
updating week 5 issues
Browse files- course_pages/week_5.py +2 -5
course_pages/week_5.py
CHANGED
@@ -60,11 +60,8 @@ def extract_text_features(text):
|
|
60 |
|
61 |
def load_data():
|
62 |
"""Load and prepare the data"""
|
63 |
-
#
|
64 |
-
|
65 |
-
|
66 |
-
# Navigate to the Data directory (two levels up from the pages directory)
|
67 |
-
data_dir = current_dir.parent.parent / "Data"
|
68 |
|
69 |
# Load the datasets
|
70 |
try:
|
|
|
60 |
|
61 |
def load_data():
|
62 |
"""Load and prepare the data"""
|
63 |
+
# Use path relative to current working directory for Hugging Face Spaces compatibility
|
64 |
+
data_dir = Path("Data")
|
|
|
|
|
|
|
65 |
|
66 |
# Load the datasets
|
67 |
try:
|