import home import text2image import image2image import streamlit as st st.sidebar.title("Explore our PLIP Demo") PAGES = { "Introduction": home, "Text to Image": text2image, "Image to Image": image2image, } page = st.sidebar.radio("", list(PAGES.keys())) PAGES[page].app()