Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -37,6 +37,7 @@ region = st.selectbox('region', ('region_7', 'region_22', 'region_19', 'region_2
|
|
| 37 |
'region_24', 'region_3', 'region_9', 'region_18'))
|
| 38 |
gender = st.selectbox('gender', ('m', 'f'))
|
| 39 |
recruitment_channel = st.selectbox('recruitment_channel', ('sourcing', 'other', 'referred'))
|
|
|
|
| 40 |
|
| 41 |
# Convert 'awards_won' to numerical format (0 or 1)
|
| 42 |
awards_won = 1 if awards_won_str == "Yes" else 0
|
|
@@ -52,7 +53,8 @@ input_data = pd.DataFrame([{
|
|
| 52 |
'department': department,
|
| 53 |
'region': region,
|
| 54 |
'gender': gender,
|
| 55 |
-
'recruitment_channel': recruitment_channel
|
|
|
|
| 56 |
}])
|
| 57 |
|
| 58 |
# Set the classification threshold
|
|
|
|
| 37 |
'region_24', 'region_3', 'region_9', 'region_18'))
|
| 38 |
gender = st.selectbox('gender', ('m', 'f'))
|
| 39 |
recruitment_channel = st.selectbox('recruitment_channel', ('sourcing', 'other', 'referred'))
|
| 40 |
+
education = st.selectbox('Education', ("Bachelor's", "Master's & above", "Below Secondary"))
|
| 41 |
|
| 42 |
# Convert 'awards_won' to numerical format (0 or 1)
|
| 43 |
awards_won = 1 if awards_won_str == "Yes" else 0
|
|
|
|
| 53 |
'department': department,
|
| 54 |
'region': region,
|
| 55 |
'gender': gender,
|
| 56 |
+
'recruitment_channel': recruitment_channel,
|
| 57 |
+
'education': education
|
| 58 |
}])
|
| 59 |
|
| 60 |
# Set the classification threshold
|