diff --git a/streamlit/streamlit_app.py b/streamlit/streamlit_app.py index db5ef1d..0707daa 100644 --- a/streamlit/streamlit_app.py +++ b/streamlit/streamlit_app.py @@ -37,28 +37,28 @@ def app(): df = pd.read_csv(uploaded_file) st.write("Data loaded successfully!") - if selected_function == "Append Electoral Roll Data to First Name": - fname_col = st.selectbox("Select column with first name", df.columns) - state = st.selectbox("Select a state", ["andaman", "andhra", "arunachal", "assam", + if selected_function == "Append Electoral Roll Data to First Name": + fname_col = st.selectbox("Select column with first name", df.columns) + state = st.selectbox("Select a state", ["andaman", "andhra", "arunachal", "assam", "bihar", "chandigarh", "dadra", "daman", "delhi", "goa", "gujarat", "haryana", "himachal", "jharkhand", "jk", "karnataka", "kerala", "maharashtra", "manipur", "meghalaya", "mizoram", "mp", "nagaland", "odisha", "puducherry", "punjab", "rajasthan", "sikkim", "tripura", "up", "uttarakhand"]) - function = sidebar_options[selected_function] - if st.button('Run'): - transformed_df = function(df, namecol=fname_col, state = state) - st.dataframe(transformed_df) - download_file(transformed_df) + function = sidebar_options[selected_function] + if st.button('Run'): + transformed_df = function(df, namecol=fname_col, state = state) + st.dataframe(transformed_df) + download_file(transformed_df) - elif selected_function == "Predict Using the Model": - fname_col = st.selectbox("Select column with first name", df.columns) - function = sidebar_options[selected_function] - if st.button('Run'): - transformed_df = function(df, namecol=fname_col) - st.dataframe(transformed_df) - download_file(transformed_df) + elif selected_function == "Predict Using the Model": + fname_col = st.selectbox("Select column with first name", df.columns) + function = sidebar_options[selected_function] + if st.button('Run'): + transformed_df = function(df, namecol=fname_col) + st.dataframe(transformed_df) + download_file(transformed_df) # Run the app if __name__ == "__main__":