Hem345 commited on
Commit
afa71f9
·
verified ·
1 Parent(s): 37cb013

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,8 +27,8 @@ st.title("Linear Regression App")
27
  st.subheader("Input vectors X and Y")
28
 
29
  # Input fields for vectors X and Y
30
- x_values = [st.number_input(f"X[{i}]", value=0.0, key=f'x{i}') for i in range(5)]
31
- y_values = [st.number_input(f"Y[{i}]", value=0.0, key=f'y{i}') for i in range(5)]
32
 
33
  # Check if both vectors are filled
34
  if len(x_values) == 3 and len(y_values) == 3:
 
27
  st.subheader("Input vectors X and Y")
28
 
29
  # Input fields for vectors X and Y
30
+ x_values = [st.number_input(f"X[{i}]", value=0.0, key=f'x{i}') for i in range(3)]
31
+ y_values = [st.number_input(f"Y[{i}]", value=0.0, key=f'y{i}') for i in range(3)]
32
 
33
  # Check if both vectors are filled
34
  if len(x_values) == 3 and len(y_values) == 3: