Nishthap commited on
Commit
700614f
·
verified ·
1 Parent(s): 9964e3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -15
app.py CHANGED
@@ -71,21 +71,21 @@ def main():
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__':
 
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__':