Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def main():
|
|
50 |
branch = st.selectbox('Branch of Study', ['CSE', 'ECE/EN', 'Others'])
|
51 |
workex = st.radio('Work Experience', ['Yes', 'No'])
|
52 |
certifications = st.number_input('Number of Certifications', min_value=0, max_value=10, value=0)
|
53 |
-
etest_p = st.number_input('Employability
|
54 |
backlogs = st.number_input('Number of Backlogs', min_value=0, max_value=10, value=0)
|
55 |
|
56 |
if st.button('predict'):
|
@@ -68,8 +68,24 @@ def main():
|
|
68 |
'Backlogs': backlogs,
|
69 |
}
|
70 |
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
|
75 |
if __name__=='__main__':
|
|
|
50 |
branch = st.selectbox('Branch of Study', ['CSE', 'ECE/EN', 'Others'])
|
51 |
workex = st.radio('Work Experience', ['Yes', 'No'])
|
52 |
certifications = st.number_input('Number of Certifications', min_value=0, max_value=10, value=0)
|
53 |
+
etest_p = st.number_input('Employability Test Score', min_value=0.0, max_value=100.0, value=50.0, step=0.1)
|
54 |
backlogs = st.number_input('Number of Backlogs', min_value=0, max_value=10, value=0)
|
55 |
|
56 |
if st.button('predict'):
|
|
|
68 |
'Backlogs': backlogs,
|
69 |
}
|
70 |
|
71 |
+
prediction, probability = predict_placement(new_data)
|
72 |
+
st.write(f'Percentage of getting placed: {probability*100:.2f}%')
|
73 |
+
|
74 |
+
if prediction == 1:
|
75 |
+
st.success(f'Placed with a probability of {prob[0][1] * 100:.2f}%')
|
76 |
+
st.write("Congratulations! You are predicted to be placed.")
|
77 |
+
st.write("Here are some tips to increase your chances of getting placed:")
|
78 |
+
st.write("- Network with professionals in your field.")
|
79 |
+
st.write("- Build a strong resume and cover letter.")
|
80 |
+
st.write("- Practice your interviewing skills.")
|
81 |
+
st.write("- Research the companies you are applying to.")
|
82 |
+
else:
|
83 |
+
st.error(f'Not Placed with a probability of {prob[0][0] * 100:.2f}%')
|
84 |
+
st.write("Unfortunately, you are predicted to not be placed.")
|
85 |
+
st.write("Here are some tips to improve your chances of getting placed:")
|
86 |
+
st.write("- Consider taking additional courses or training to improve your skills.")
|
87 |
+
st.write("- Gain some work experience through internships or part-time jobs.")
|
88 |
+
st.write("- Volunteer your time to gain experience and build your network.")
|
89 |
|
90 |
|
91 |
if __name__=='__main__':
|