Update app.py
Browse files
app.py
CHANGED
@@ -5,23 +5,23 @@ from datetime import datetime
|
|
5 |
import joblib
|
6 |
|
7 |
# Load the trained Random Forest model
|
8 |
-
rf_model = joblib.load('rf_model.
|
9 |
|
10 |
# Load encoders
|
11 |
-
le_jobtitle = joblib.load('le_jobtitle.
|
12 |
-
le_location = joblib.load('le_location.
|
13 |
-
le_season = joblib.load('le_season.
|
14 |
|
15 |
# Load scaler
|
16 |
-
scaler = joblib.load('scaler.
|
17 |
|
18 |
# Load target encoding mapping for Hospital
|
19 |
-
hospital_target_mapping = joblib.load('hospital_target_mapping.
|
20 |
|
21 |
# Load lists for dropdown menus
|
22 |
-
job_titles = joblib.load('job_titles.
|
23 |
-
locations = joblib.load('locations.
|
24 |
-
hospitals = joblib.load('hospitals.
|
25 |
|
26 |
# Streamlit app
|
27 |
st.title('Hourly Pay Rate Prediction')
|
|
|
5 |
import joblib
|
6 |
|
7 |
# Load the trained Random Forest model
|
8 |
+
rf_model = joblib.load('rf_model.pkl')
|
9 |
|
10 |
# Load encoders
|
11 |
+
le_jobtitle = joblib.load('le_jobtitle.pkl')
|
12 |
+
le_location = joblib.load('le_location.pkl')
|
13 |
+
le_season = joblib.load('le_season.pkl')
|
14 |
|
15 |
# Load scaler
|
16 |
+
scaler = joblib.load('scaler.pkl')
|
17 |
|
18 |
# Load target encoding mapping for Hospital
|
19 |
+
hospital_target_mapping = joblib.load('hospital_target_mapping.pkl')
|
20 |
|
21 |
# Load lists for dropdown menus
|
22 |
+
job_titles = joblib.load('job_titles.pkl')
|
23 |
+
locations = joblib.load('locations.pkl')
|
24 |
+
hospitals = joblib.load('hospitals.pkl')
|
25 |
|
26 |
# Streamlit app
|
27 |
st.title('Hourly Pay Rate Prediction')
|