Spaces:
Sleeping
Sleeping
File size: 1,934 Bytes
191195c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
""" 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)
|