Web_QnA / app.py
CosmoAI's picture
Update app.py
6b6ce9a
raw
history blame
564 Bytes
import streamlit as st
from streamlit_option_menu import option_menu
embed = """<iframe
src="https://cosmoai-cosmos.hf.space"
frameborder="0"
width="850"
height="450"
></iframe>
"""
st.markdown(embed, unsafe_allow_html=True)
# Create a nested streamlit-option-menu
options = [
"Option 1",
option_menu(
"Sub Menu",
optons=["Option 2", "Option 3"],
default="Option 2",
style={"width": "100%"},
),
]
# Display the streamlit-option-menu
option_menu("Main Menu", options, default="Option 1", style={"width": "100%"})