Exploring the multi-pages feature
Multi-pages in Streamlit are a way to organize your app into multiple pages, each with its own content. This can be useful for large apps with a lot of functionalities, or for apps that need to be divided into different sections for different users.
To create a multi-page app in Streamlit, you simply need to create a new folder called pages
in the same folder as your main app file. Then, create new Python files inside the pages
folder, each of which will represent a different page in your app.
Once you have created your pages, you can start adding content to them. You can use any Streamlit widgets and functions that you want, just like you would in a regular Streamlit app.
When you run your app, Streamlit will automatically detect the pages in the pages
folder and add them to a navigation bar in the sidebar. Users can then click on the different pages to navigate between them.
According to the preceding explanation, everything sounds easy...