From 8787e8b3bbcb48a95e43071b8566e1cba8116cef Mon Sep 17 00:00:00 2001 From: Sekhar Khanal <102132259+sekhar5031@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:05:59 +0545 Subject: [PATCH 1/2] Update README.md Added streamlit app build steps --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11e6989..e273e57 100644 --- a/README.md +++ b/README.md @@ -88,4 +88,30 @@ python3 school_center.py sample_data/schools_grade12_2081.tsv sample_data/center 🚀 24-04-22 20:40:27 - __main__ - INFO - Total remaining capacity across all centers: 161 🚀 24-04-22 20:40:27 - __main__ - INFO - Students not assigned: 0 -``` \ No newline at end of file +``` + +## Build stream lit app includes the following steps + +Install Streamlit using pip +```bash +pip install streamlit +``` + +Run the app from command line +```bash +streamlit run app.py +``` + +A browser window will open showing your app. Also the changes to python files will automatically reload. +![image](https://github.com/sekhar5031/center-randomize-moest/assets/102132259/d859e64e-1e71-4efb-a031-16602039ddf5) + + +Upload the sample data present on the sample_data section +![image](https://github.com/sekhar5031/center-randomize-moest/assets/102132259/00a0e3cb-76fe-42bf-8e9d-78816aaf388c) + +Click on Calculate centers which will give the school center, school center distance, view school data, view data centers and aslo the view pref data. +![image](https://github.com/sekhar5031/center-randomize-moest/assets/102132259/0bdd93c8-2fb1-4753-9416-54e9e90d8de2) + + + + From bbae8534af93f16c80875a15e88de1a73581154d Mon Sep 17 00:00:00 2001 From: Sekhar Khanal <102132259+sekhar5031@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:39:52 +0545 Subject: [PATCH 2/2] Update app.py Added title and caption for streamlit app --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 770d5a9..bf87148 100644 --- a/app.py +++ b/app.py @@ -13,6 +13,9 @@ initial_sidebar_state="expanded", ) +st.title("Ministry of Education, science and technology - MOEST") +st.caption("MOEST exam center calculator") + #Sidebar with st.sidebar: