Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,13 +89,13 @@ model.eval()
|
|
| 89 |
col1, col2, col3 = st.columns(3)
|
| 90 |
|
| 91 |
with col1:
|
| 92 |
-
cgpa = st.number_input("Enter your CGPA", min_value=0.0, max_value=10.0, step=0.01)
|
| 93 |
internships = st.number_input("Number of Internships", min_value=0, max_value=10, step=1)
|
| 94 |
projects = st.number_input("Number of Projects", min_value=0, max_value=20, step=1)
|
| 95 |
|
| 96 |
|
| 97 |
with col2:
|
| 98 |
-
AptitudeTestScore = st.number_input("Aptitude Test Score", min_value=0, max_value=100, step=1)
|
| 99 |
SoftSkillsRating = st.number_input("Soft Skills Rating", min_value=0, max_value=5, step=1)
|
| 100 |
ExtracurricularActivities = st.selectbox("Extracurricular Activities", ["Yes", "No"])
|
| 101 |
ExtracurricularActivities = 1 if ExtracurricularActivities == "Yes" else 0
|
|
@@ -104,8 +104,8 @@ with col2:
|
|
| 104 |
with col3:
|
| 105 |
PlacementTraining = st.selectbox("Placement Training", ["Yes", "No"])
|
| 106 |
PlacementTraining = 1 if PlacementTraining == "Yes" else 0
|
| 107 |
-
SSC_Marks = st.number_input("SSC Marks", min_value=0, max_value=100, step=1)
|
| 108 |
-
HSC_Marks = st.number_input("HSC Marks", min_value=0, max_value=100, step=1)
|
| 109 |
certifications = st.selectbox("Do you have certifications?", ["Yes", "No"])
|
| 110 |
certifications = 1 if certifications == "Yes" else 0
|
| 111 |
|
|
@@ -121,7 +121,6 @@ if st.button("Predict Placement"):
|
|
| 121 |
with torch.no_grad():
|
| 122 |
output = model(input_data).item()
|
| 123 |
if output >= 0.5:
|
| 124 |
-
st.write("🎉 Congratulations! You are likely to get placed.")
|
| 125 |
st.markdown(
|
| 126 |
"""
|
| 127 |
<div style='background-color: #d4edda; padding: 10px; border-radius: 5px;'>
|
|
|
|
| 89 |
col1, col2, col3 = st.columns(3)
|
| 90 |
|
| 91 |
with col1:
|
| 92 |
+
cgpa = st.number_input("Enter your CGPA (1 to 10)", min_value=0.0, max_value=10.0, step=0.01)
|
| 93 |
internships = st.number_input("Number of Internships", min_value=0, max_value=10, step=1)
|
| 94 |
projects = st.number_input("Number of Projects", min_value=0, max_value=20, step=1)
|
| 95 |
|
| 96 |
|
| 97 |
with col2:
|
| 98 |
+
AptitudeTestScore = st.number_input("Aptitude Test Score(%)", min_value=0, max_value=100, step=1)
|
| 99 |
SoftSkillsRating = st.number_input("Soft Skills Rating", min_value=0, max_value=5, step=1)
|
| 100 |
ExtracurricularActivities = st.selectbox("Extracurricular Activities", ["Yes", "No"])
|
| 101 |
ExtracurricularActivities = 1 if ExtracurricularActivities == "Yes" else 0
|
|
|
|
| 104 |
with col3:
|
| 105 |
PlacementTraining = st.selectbox("Placement Training", ["Yes", "No"])
|
| 106 |
PlacementTraining = 1 if PlacementTraining == "Yes" else 0
|
| 107 |
+
SSC_Marks = st.number_input("SSC Marks (%)", min_value=0, max_value=100, step=1)
|
| 108 |
+
HSC_Marks = st.number_input("HSC Marks(%)", min_value=0, max_value=100, step=1)
|
| 109 |
certifications = st.selectbox("Do you have certifications?", ["Yes", "No"])
|
| 110 |
certifications = 1 if certifications == "Yes" else 0
|
| 111 |
|
|
|
|
| 121 |
with torch.no_grad():
|
| 122 |
output = model(input_data).item()
|
| 123 |
if output >= 0.5:
|
|
|
|
| 124 |
st.markdown(
|
| 125 |
"""
|
| 126 |
<div style='background-color: #d4edda; padding: 10px; border-radius: 5px;'>
|