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, caption="ferret") page = st.sidebar.radio("", list(PAGES.keys())) PAGES[page].body()