Spaces:
Runtime error
Runtime error
import streamlit as st | |
from streamlit_option_menu import option_menu | |
from pymongo import MongoClient | |
import os | |
import pandas as pd | |
def Reminder(): | |
embed = '''<iframe | |
src="https://ankush05-reminder.hf.space" | |
frameborder="0" | |
width="1200" | |
height="700" | |
></iframe> | |
''' | |
st.markdown(embed, unsafe_allow_html=True) | |
def ChatBot(): | |
st.title("ChatBot") | |
def Friday(): | |
st.title("Friday") | |
def Code4(): | |
st.title("Code4") | |
def Code5(): | |
st.title("Code5") | |
def Code6(): | |
st.title("Code6") | |
def dashboard(): | |
st.title("Welcome to the Dashboard") | |
with st.sidebar: | |
selected = option_menu(None, ["Reminder", "ChatBot","Friday", "Code4", "Code5", "Code6", "Logout"], icons=["plus", "eye","sun", "book", "book", "book", "power-off"]) | |
if selected == "Reminder": | |
Reminder() | |
elif selected == "ChatBot": | |
ChatBot() | |
elif selected == "Friday": | |
Friday() | |
elif selected == "Code4": | |
Code4() | |
elif selected == "Code5": | |
Code5() | |
elif selected == "Code6": | |
Code6() | |
elif selected == "Logout": | |
st.session_state["user"] = "Guest" | |
st.experimental_rerun() |