Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 31 |
-
y_values = [st.number_input(f"Y[{i}]", value=0.0, key=f'y{i}') for i in range(
|
| 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:
|