Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,9 @@ def main():
|
|
| 56 |
|
| 57 |
if st.button("Predict"):
|
| 58 |
predicted_sum = predict_sum(model, x1, x2)
|
|
|
|
| 59 |
st.write(f"The predicted sum of {x1} and {x2} is: {predicted_sum:.2f}")
|
|
|
|
| 60 |
else:
|
| 61 |
st.error("Model file not found. Please upload the model.")
|
| 62 |
|
|
|
|
| 56 |
|
| 57 |
if st.button("Predict"):
|
| 58 |
predicted_sum = predict_sum(model, x1, x2)
|
| 59 |
+
correct_sum = x1 + x2 # Calculate the correct answer
|
| 60 |
st.write(f"The predicted sum of {x1} and {x2} is: {predicted_sum:.2f}")
|
| 61 |
+
st.write(f"The correct sum of {x1} and {x2} is: {correct_sum:.2f}")
|
| 62 |
else:
|
| 63 |
st.error("Model file not found. Please upload the model.")
|
| 64 |
|