Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,8 +80,10 @@ def app_design():
|
|
| 80 |
# Make a prediction when the user clicks the "Predict" button
|
| 81 |
if st.button('Predict Grade'):
|
| 82 |
predicted_value = model_prediction(model, features)
|
| 83 |
-
|
| 84 |
-
|
|
|
|
|
|
|
| 85 |
|
| 86 |
|
| 87 |
def about_hidevs():
|
|
|
|
| 80 |
# Make a prediction when the user clicks the "Predict" button
|
| 81 |
if st.button('Predict Grade'):
|
| 82 |
predicted_value = model_prediction(model, features)
|
| 83 |
+
if int(predicted_value)<=0:
|
| 84 |
+
st.success(f"Student Grade is: 0")
|
| 85 |
+
else:
|
| 86 |
+
st.success(f"Student Grade is: {predicted_value}")
|
| 87 |
|
| 88 |
|
| 89 |
def about_hidevs():
|