Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
add instructions for streamlit
  • Loading branch information
sumanashrestha authored Nov 17, 2024
1 parent 47fe960 commit 987c14c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 987c14c

Please sign in to comment.