Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,15 +81,11 @@ def predict_performance(Location, College_Fee, GPA, Year, Course_Interested, Col
|
|
81 |
# print(f"Raw prediction: {prediction}")
|
82 |
# prediction_probability = 1 / (1 + np.exp(-prediction))
|
83 |
# print(f"Probability: {prediction_probability}")
|
84 |
-
|
85 |
-
|
86 |
|
87 |
-
|
88 |
|
89 |
-
# Make predictions using the loaded model
|
90 |
-
prediction = model.predict(scaled_input)[0]
|
91 |
-
|
92 |
-
return f"Predicted House Price: ${prediction:,.2f}"
|
93 |
|
94 |
iface = gr.Interface(
|
95 |
fn=predict_performance,
|
|
|
81 |
# print(f"Raw prediction: {prediction}")
|
82 |
# prediction_probability = 1 / (1 + np.exp(-prediction))
|
83 |
# print(f"Probability: {prediction_probability}")
|
84 |
+
prediction_percentage = prediction_probability * 100
|
85 |
+
print(f"Percentage: {prediction_percentage}")
|
86 |
|
87 |
+
return f"Chance of Admission: {prediction_percentage:.1f}%"
|
88 |
|
|
|
|
|
|
|
|
|
89 |
|
90 |
iface = gr.Interface(
|
91 |
fn=predict_performance,
|