Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,12 +48,13 @@ def predict_placement(Internships, CGPA, HistoryOfBacklogs):
|
|
| 48 |
# Return the predicted label
|
| 49 |
return 'Placed' if prediction else 'Not Placed'
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
| 57 |
|
| 58 |
# Launch the Gradio interface
|
| 59 |
-
|
|
|
|
| 48 |
# Return the predicted label
|
| 49 |
return 'Placed' if prediction else 'Not Placed'
|
| 50 |
|
| 51 |
+
interface = gr.Interface(
|
| 52 |
+
fn=predict_placement,
|
| 53 |
+
inputs=["number", "number", "number"],
|
| 54 |
+
outputs="text",
|
| 55 |
+
title="Student Placement Prediction",
|
| 56 |
+
description="Predict whether a student will be placed in a job based on their internships, CGPA, and history of backlogs."
|
| 57 |
+
)
|
| 58 |
|
| 59 |
# Launch the Gradio interface
|
| 60 |
+
interface.launch()
|