From 987c14c964556f0b6bced9238989beedafaee7aa Mon Sep 17 00:00:00 2001 From: Sumana Shrestha <166157818+sumanashrestha@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:18:18 +0545 Subject: [PATCH] fix lint error add instructions for streamlit --- README.md | 6 ++++++ app.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2d5265..e1e3175 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,12 @@ To run `school_center.py` use the command below: python3 school_center.py sample_data/schools_grade12_2081.tsv sample_data/centers_grade12_2081.tsv sample_data/prefs.tsv ``` +To run streamlit app locally, install streamlit and use this command: + +```bash +streamlit run app.py +``` + ## Output ``` diff --git a/app.py b/app.py index 3b06daf..2ad4bc3 100644 --- a/app.py +++ b/app.py @@ -202,7 +202,7 @@ def save_file_to_temp(file_obj): try: if st.session_state.map_type: st.session_state.map_type = st.radio("Choose a map type:", ["cartodbpositron", "openstreetmap"], horizontal=True) - except: + except Exception: st.session_state.map_type = "cartodbpositron" show_heatmap = st.checkbox("View allocation distribution", value=False)