import streamlit as st import image2text import text2image import home PAGES = {"Introduction": home, "Text to Image": text2image, "Image to Text": image2text} st.sidebar.title("Explore our CLIP-Italian demo") page = st.sidebar.radio("", list(PAGES.keys())) PAGES[page].app()