Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,16 +17,18 @@ def perform_linear_regression(X, Y):
|
|
| 17 |
return slope, intercept
|
| 18 |
|
| 19 |
# Streamlit interface
|
| 20 |
-
st.title("Linear Regression
|
| 21 |
-
st.subheader("Input vectors X and Y")
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Create two columns
|
| 24 |
col1, col2 = st.columns(2)
|
| 25 |
|
| 26 |
# Input fields for vectors X and Y in the first column
|
| 27 |
with col1:
|
| 28 |
-
x_input = st.text_input("X values (comma-separated)", "0
|
| 29 |
-
y_input = st.text_input("Y values (comma-separated)", "0
|
| 30 |
|
| 31 |
# Parse the input strings into lists of floats
|
| 32 |
try:
|
|
|
|
| 17 |
return slope, intercept
|
| 18 |
|
| 19 |
# Streamlit interface
|
| 20 |
+
st.title("Linear Regression Visualization")
|
| 21 |
+
st.subheader("Please Input vectors X and Y and see the points in Graph")
|
| 22 |
+
st.subheader("Observe Slope and Intercept values below")
|
| 23 |
+
st.subheader("Developed by Dr.Hemprasad Yashwant Patil, SENSE, VIT Vellore")
|
| 24 |
|
| 25 |
# Create two columns
|
| 26 |
col1, col2 = st.columns(2)
|
| 27 |
|
| 28 |
# Input fields for vectors X and Y in the first column
|
| 29 |
with col1:
|
| 30 |
+
x_input = st.text_input("X values (comma-separated)", "0, 0, 0")
|
| 31 |
+
y_input = st.text_input("Y values (comma-separated)", "0, 0, 0")
|
| 32 |
|
| 33 |
# Parse the input strings into lists of floats
|
| 34 |
try:
|