Update app.py
Browse files
app.py
CHANGED
@@ -7,14 +7,15 @@ from huggingface_hub import hf_hub_download
|
|
7 |
# Download the model from Hugging Face hub
|
8 |
model_filename = hf_hub_download(repo_id="poudel/Job_Predictor", filename="random_forest_pipeline.pkl")
|
9 |
|
10 |
-
# Load the model
|
11 |
loaded_model = joblib.load(model_filename)
|
12 |
|
13 |
-
# Download the dataset from Hugging Face hub
|
14 |
-
data_filename = hf_hub_download(repo_id="poudel/Job_Predictor", filename="cleaned_erecruit_open_data.
|
|
|
|
|
|
|
15 |
|
16 |
-
# Load the dataset
|
17 |
-
data = pd.read_excel(data_filename)
|
18 |
|
19 |
# Get unique values for dropdowns
|
20 |
position_titles = data['PositionTitle'].unique().tolist()
|
|
|
7 |
# Download the model from Hugging Face hub
|
8 |
model_filename = hf_hub_download(repo_id="poudel/Job_Predictor", filename="random_forest_pipeline.pkl")
|
9 |
|
10 |
+
# Load the model directly
|
11 |
loaded_model = joblib.load(model_filename)
|
12 |
|
13 |
+
# Download the dataset (CSV) from Hugging Face hub
|
14 |
+
data_filename = hf_hub_download(repo_id="poudel/Job_Predictor", filename="cleaned_erecruit_open_data.csv")
|
15 |
+
|
16 |
+
# Load the CSV dataset
|
17 |
+
data = pd.read_csv(data_filename)
|
18 |
|
|
|
|
|
19 |
|
20 |
# Get unique values for dropdowns
|
21 |
position_titles = data['PositionTitle'].unique().tolist()
|