Spaces:
Sleeping
Sleeping
| """ Resources: | |
| 1- https://streamlit-emoji-shortcodes-streamlit-app-gwckff.streamlit.app/ | |
| 2- https://github.com/giswqs/streamlit-geospatial | |
| """ | |
| import streamlit as st | |
| USER_GROUPS = ["Developer", "Manager", "Practitioner"] | |
| st.set_page_config(layout="wide") | |
| st.sidebar.title("About") | |
| st.sidebar.info( | |
| """ | |
| Web App URL: <https://google.com> | |
| GitHub repository: <https://github.com/kaplansinan/streamlit-airamework> | |
| """ | |
| ) | |
| st.sidebar.title("Contact") | |
| st.sidebar.info( | |
| """ | |
| Sinan Kaplan: <https://www.linkedin.com/in/kaplansinan> | |
| [GitHub](https://github.com/kaplansinan) | [LinkedIn](https://www.linkedin.com/in/kaplansinan) | |
| """ | |
| ) | |
| if 'user_group' not in st.session_state: | |
| index_tmp = 0 | |
| else: | |
| index_tmp = USER_GROUPS.index(st.session_state['user_group']) | |
| #Sidebar for USER GROUPS | |
| st.sidebar.title("USER GROUPS") | |
| backend = st.sidebar.selectbox( | |
| "Select User-Group ", USER_GROUPS, index=index_tmp | |
| ) | |
| st.session_state['user_group'] = backend | |
| # Customize page title | |
| st.title("AI Framework Applications") | |
| st.markdown( | |
| """ | |
| This multipage app template demonstrates various interactive web apps created using [streamlit](https://streamlit.io) and [leafmap](https://leafmap.org). It is an open-source project and you are very welcome to contribute to the [GitHub repository](https://github.com/giswqs/streamlit-multipage-template). | |
| """ | |
| ) | |
| st.header("Instructions") | |
| markdown = """ | |
| 1. For the [GitHub repository](https://github.com/giswqs/streamlit-multipage-template) or [use it as a template](https://github.com/giswqs/streamlit-multipage-template/generate) for your own project. | |
| 2. Customize the sidebar by changing the sidebar text and logo in each Python files. | |
| 3. Find your favorite emoji from https://emojipedia.org. | |
| 4. Add a new app to the `pages/` directory with an emoji in the file name, e.g., `1_π_Chart.py`. | |
| """ | |
| st.markdown(markdown) | |