Spaces:
Sleeping
Sleeping
Shreyan
commited on
Commit
·
cd3526a
1
Parent(s):
5179d2b
Fix Hugging Face dataset loading with repo_type
Browse files
model.py
CHANGED
|
@@ -37,8 +37,9 @@ class JobRecommendationSystem:
|
|
| 37 |
else:
|
| 38 |
print("⚠️ Local dataset not found, downloading from Hugging Face Hub...")
|
| 39 |
dataset_path = hf_hub_download(
|
| 40 |
-
repo_id="
|
| 41 |
-
filename="JobsFE.csv"
|
|
|
|
| 42 |
)
|
| 43 |
self.jobs_df = pd.read_csv(dataset_path)
|
| 44 |
|
|
|
|
| 37 |
else:
|
| 38 |
print("⚠️ Local dataset not found, downloading from Hugging Face Hub...")
|
| 39 |
dataset_path = hf_hub_download(
|
| 40 |
+
repo_id="shreyan67/Job-Catalyst_AI", # <-- make sure this repo exists on your HF account
|
| 41 |
+
filename="JobsFE.csv",
|
| 42 |
+
repo_type="dataset"
|
| 43 |
)
|
| 44 |
self.jobs_df = pd.read_csv(dataset_path)
|
| 45 |
|