import home import text2image import image2image import visualization import streamlit as st import streamlit.components.v1 as components st.set_page_config(layout="wide") st.sidebar.title("WebPLIP") components.html(''' ''') PAGES = { "Introduction": home, "Text to Image": text2image, "Image to Image": image2image, "Visualization": visualization, } page = st.sidebar.radio("", list(PAGES.keys())) PAGES[page].app()