RaidedCluster commited on
Commit
817c11b
Β·
verified Β·
1 Parent(s): 055dde9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -7,10 +7,10 @@ def predict_mode():
7
  st.title("πŸ“Š Predict Mode: Salary Prediction")
8
 
9
  # Input fields for prediction
10
- gender = st.selectbox("Gender", ["m", "f"])
11
- perc_10 = st.number_input("10th Percentage", min_value=0.0, max_value=100.0, value=80.0)
12
- perc_12 = st.number_input("12th Percentage", min_value=0.0, max_value=100.0, value=80.0)
13
- tier = st.selectbox("College Tier (Only 1 or 2 accepted)", [1, 2])
14
 
15
  specializations = [
16
  'electronics & instrumentation',
@@ -39,9 +39,9 @@ def predict_mode():
39
  'mechatronics',
40
  'information & communication technology'
41
  ]
42
- specialization = st.selectbox("Specialization", specializations)
43
 
44
- cgpa_input = st.number_input("College GPA (0-10 scale)", min_value=0.0, max_value=10.0, value=7.5)
45
  college_gpa = cgpa_input * 10 # Scale up to 100
46
 
47
  locations = [
@@ -50,7 +50,7 @@ def predict_mode():
50
  "Punjab", "Madhya Pradesh", "Uttarakhand", "Gujarat", "Jharkhand", "Himachal Pradesh",
51
  "Bihar", "Kerala", "Assam", "Jammu and Kashmir", "Sikkim", "Meghalaya", "Goa"
52
  ]
53
- location = st.selectbox("Location", locations)
54
 
55
  # Prepare input DataFrame (ensure column names match training data)
56
  input_df = pd.DataFrame({
 
7
  st.title("πŸ“Š Predict Mode: Salary Prediction")
8
 
9
  # Input fields for prediction
10
+ gender = st.selectbox("Gender 🚻", ["m", "f"])
11
+ perc_10 = st.number_input("10th Percentage β‘©", min_value=0.0, max_value=100.0, value=80.0)
12
+ perc_12 = st.number_input("12th Percentage β‘«", min_value=0.0, max_value=100.0, value=80.0)
13
+ tier = st.selectbox("College Tier (Only 1 or 2 accepted) πŸ›οΈ", [1, 2])
14
 
15
  specializations = [
16
  'electronics & instrumentation',
 
39
  'mechatronics',
40
  'information & communication technology'
41
  ]
42
+ specialization = st.selectbox("Specialization βš™οΈ", specializations)
43
 
44
+ cgpa_input = st.number_input("College GPA (0-10 scale πŸ“)", min_value=0.0, max_value=10.0, value=7.5)
45
  college_gpa = cgpa_input * 10 # Scale up to 100
46
 
47
  locations = [
 
50
  "Punjab", "Madhya Pradesh", "Uttarakhand", "Gujarat", "Jharkhand", "Himachal Pradesh",
51
  "Bihar", "Kerala", "Assam", "Jammu and Kashmir", "Sikkim", "Meghalaya", "Goa"
52
  ]
53
+ location = st.selectbox("Location πŸ“", locations)
54
 
55
  # Prepare input DataFrame (ensure column names match training data)
56
  input_df = pd.DataFrame({