Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,10 @@ def predict_placement(option, degree_p, internship, DSA, java, management,
|
|
51 |
else:
|
52 |
return "Invalid option"
|
53 |
|
54 |
-
if prediction == 1:
|
55 |
-
|
56 |
-
else:
|
57 |
-
|
58 |
|
59 |
|
60 |
# Create Gradio interface
|
|
|
51 |
else:
|
52 |
return "Invalid option"
|
53 |
|
54 |
+
if prediction == 1:
|
55 |
+
return f"Placed\nYou will be placed with a probability of {probability:.2f}"
|
56 |
+
else:
|
57 |
+
return f"Placed\nYou will be placed with a probability of {probability:.2f}"
|
58 |
|
59 |
|
60 |
# Create Gradio interface
|