Hem345 commited on
Commit
b2a9ac0
·
verified ·
1 Parent(s): 58d106a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: