Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -2
src/streamlit_app.py
CHANGED
|
@@ -17,9 +17,8 @@ menu = st.sidebar.radio("Navigation", ["Train Model", "Predict Churn"])
|
|
| 17 |
if menu == "Train Model":
|
| 18 |
st.header("Upload Dataset and Train Model")
|
| 19 |
uploaded_file = st.file_uploader("Upload Insurance Churn Dataset (CSV)", type=["csv"])
|
| 20 |
-
|
| 21 |
if uploaded_file is not None:
|
| 22 |
-
data = pd.read_csv(
|
| 23 |
st.subheader("Dataset Preview")
|
| 24 |
st.dataframe(data.head())
|
| 25 |
|
|
|
|
| 17 |
if menu == "Train Model":
|
| 18 |
st.header("Upload Dataset and Train Model")
|
| 19 |
uploaded_file = st.file_uploader("Upload Insurance Churn Dataset (CSV)", type=["csv"])
|
|
|
|
| 20 |
if uploaded_file is not None:
|
| 21 |
+
data = pd.read_csv("insurance_data.csv")
|
| 22 |
st.subheader("Dataset Preview")
|
| 23 |
st.dataframe(data.head())
|
| 24 |
|