Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -61,9 +61,9 @@ def predict_performance(Location, College_Fee, College, GPA, Year, Course_Intere
|
|
61 |
else:
|
62 |
confidence_level = "Lower chance of admission"
|
63 |
|
64 |
-
|
65 |
|
66 |
-
return f"Admission Probability: {prediction_percentage:.1f}%\n{confidence_level}"
|
67 |
|
68 |
except Exception as e:
|
69 |
return f"Error in prediction: {str(e)}"
|
@@ -73,8 +73,8 @@ iface = gr.Interface(
|
|
73 |
fn=predict_performance,
|
74 |
inputs=[
|
75 |
gr.Radio(["Kathmandu", "Bhaktapur", "Lalitpur", "Kritipur"], label="Location",info="What is your current location?"),
|
76 |
-
gr.Slider(minimum=1000000, maximum=1700000,step=100000,label="College Fee", info="the bachelor fee for the course you want to enroll?"),
|
77 |
-
gr.Radio(["Trinity", "CCRC", "KMC", "SOS", "ISMT", "St. Xavier's", "Everest", "Prime"], label="College"),
|
78 |
gr.Slider(minimum=2, maximum=3, label="GPA", info="What is your GPA (Grade Point Average) of +2 ?"),
|
79 |
gr.Slider(minimum=2024, maximum=2024, step=1, label="Year", info="What is your intended year of admission?"),
|
80 |
gr.Radio(["MSc IT & Applied Security", "BSc (Hons) Computing", "BSc (Hons) Computing with Artificial Intelligence",
|
|
|
61 |
else:
|
62 |
confidence_level = "Lower chance of admission"
|
63 |
|
64 |
+
return confidence_level
|
65 |
|
66 |
+
#return f"Admission Probability: {prediction_percentage:.1f}%\n{confidence_level}"
|
67 |
|
68 |
except Exception as e:
|
69 |
return f"Error in prediction: {str(e)}"
|
|
|
73 |
fn=predict_performance,
|
74 |
inputs=[
|
75 |
gr.Radio(["Kathmandu", "Bhaktapur", "Lalitpur", "Kritipur"], label="Location",info="What is your current location?"),
|
76 |
+
gr.Slider(minimum=1000000, maximum=1700000,step=100000,label="College Fee", info="What 's the the total bachelor fee for the course you want to enroll?"),
|
77 |
+
gr.Radio(["Trinity", "CCRC", "KMC", "SOS", "ISMT", "St. Xavier's", "Everest", "Prime"], label="College", info=""),
|
78 |
gr.Slider(minimum=2, maximum=3, label="GPA", info="What is your GPA (Grade Point Average) of +2 ?"),
|
79 |
gr.Slider(minimum=2024, maximum=2024, step=1, label="Year", info="What is your intended year of admission?"),
|
80 |
gr.Radio(["MSc IT & Applied Security", "BSc (Hons) Computing", "BSc (Hons) Computing with Artificial Intelligence",
|