Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,11 @@ def predict_marks(Hours_studied, Previous_Score, Extracurriculum_Activivities, S
|
|
| 11 |
prediction = model.predict(input_data)
|
| 12 |
return round(float(prediction), 2)
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
def main():
|
| 15 |
# Sidebar Welcome Note with Emojis
|
| 16 |
|
|
|
|
| 11 |
prediction = model.predict(input_data)
|
| 12 |
return round(float(prediction), 2)
|
| 13 |
|
| 14 |
+
if prediction > 100:
|
| 15 |
+
prediction = 100
|
| 16 |
+
|
| 17 |
+
return prediction
|
| 18 |
+
|
| 19 |
def main():
|
| 20 |
# Sidebar Welcome Note with Emojis
|
| 21 |
|