Nishthap commited on
Commit
02447fa
1 Parent(s): de373a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -18
app.py CHANGED
@@ -1,24 +1,17 @@
1
  import streamlit as st
2
  import joblib
3
  import pandas as pd
4
- #st.title('Placement Prediction app')
5
- # st.markdown("""
6
- # <style>
7
- # .title {
8
- # font-size: 50px;
9
- # font-weight: bold;
10
- # color: #4CAF50;
11
- # text-align: center;
12
- # font-family: 'Courier New', Courier, monospace;
13
- # }
14
- # </style>
15
- # """, unsafe_allow_html=True)
16
-
17
-
18
- # st.title('Placement Prediction App')
19
- # st.subheader('Predicting student placement outcomes using machine learning')
20
- # st.markdown('This app uses historical data to predict whether a student will be placed in a company based on their profile.')
21
 
 
 
 
 
 
 
 
 
 
 
22
  try:
23
  model = joblib.load('model_campus')
24
  st.success("Model loaded successfully!")
@@ -39,6 +32,7 @@ def predict_placement(data):
39
 
40
  def main():
41
  st.header('Placement Prediciton App')
 
42
 
43
  gender = st.radio('Gender', ['Male', 'Female'])
44
  ssc_p = st.number_input('Secondary School Percentage', min_value=0.0, max_value=100.0, value=50.0, step=0.1)
@@ -49,7 +43,7 @@ def main():
49
  branch = st.selectbox('Branch of Study', ['CSE', 'ECE/EN', 'Others'])
50
  workex = st.radio('Work Experience', ['Yes', 'No'])
51
  certifications = st.number_input('Number of Certifications', min_value=0, max_value=10, value=0)
52
- etest_p = st.number_input('Employability Percentage', min_value=0.0, max_value=100.0, value=50.0, step=0.1)
53
  backlogs = st.number_input('Number of Backlogs', min_value=0, max_value=10, value=0)
54
 
55
  if st.button('predict'):
 
1
  import streamlit as st
2
  import joblib
3
  import pandas as pd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ st.markdown(
6
+ """
7
+ <style>
8
+ body {
9
+ background-color: #C9E4DE;
10
+ }
11
+ </style>
12
+ """,
13
+ unsafe_allow_html=True
14
+ )
15
  try:
16
  model = joblib.load('model_campus')
17
  st.success("Model loaded successfully!")
 
32
 
33
  def main():
34
  st.header('Placement Prediciton App')
35
+ st.markdown('This app uses historical data to predict whether a student will be placed in a company based on their profile.')
36
 
37
  gender = st.radio('Gender', ['Male', 'Female'])
38
  ssc_p = st.number_input('Secondary School Percentage', min_value=0.0, max_value=100.0, value=50.0, step=0.1)
 
43
  branch = st.selectbox('Branch of Study', ['CSE', 'ECE/EN', 'Others'])
44
  workex = st.radio('Work Experience', ['Yes', 'No'])
45
  certifications = st.number_input('Number of Certifications', min_value=0, max_value=10, value=0)
46
+ etest_p = st.number_input('Employability Test Score', min_value=0.0, max_value=100.0, value=50.0, step=0.1)
47
  backlogs = st.number_input('Number of Backlogs', min_value=0, max_value=10, value=0)
48
 
49
  if st.button('predict'):