Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated README.md for streamlit app build #70

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
```

## 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)




3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down