import streamlit as st import image2text import text2image import home PAGES = {"Home": home, "Text to Image": text2image, "Image to Text": image2text} st.sidebar.title("Navigation") page = st.sidebar.selectbox("Choose a task", list(PAGES.keys())) PAGES[page].app()