Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,6 +84,7 @@ if len(x_values) == 3 and len(y_values) == 3:
|
|
| 84 |
|
| 85 |
if test_x_input:
|
| 86 |
predicted_y = model.predict(np.array([[test_x_input]]))[0]
|
|
|
|
| 87 |
st.write(f"Predicted Y for X = {test_x_input} for the above model is {predicted_y}")
|
| 88 |
|
| 89 |
else:
|
|
|
|
| 84 |
|
| 85 |
if test_x_input:
|
| 86 |
predicted_y = model.predict(np.array([[test_x_input]]))[0]
|
| 87 |
+
predicted_y = round(predicted_y, 1)
|
| 88 |
st.write(f"Predicted Y for X = {test_x_input} for the above model is {predicted_y}")
|
| 89 |
|
| 90 |
else:
|