import streamlit as st import single import corpus from PIL import Image PAGES = { "Single Explanation": single, "Corpus Explanation": corpus, } # st.sidebar.title("Explore ferret!") logo = Image.open("static/logo.png") st.sidebar.image(logo) page = st.sidebar.radio("", list(PAGES.keys())) PAGES[page].body()