koclip / app.py
jaketae's picture
style: run linter
14261e1
raw
history blame
421 Bytes
import streamlit as st
import image2text
import most_relevant_part
import text2image
PAGES = {
"Text to Image": text2image,
"Image to Text": image2text,
"Most Relevant Part of Image": most_relevant_part,
}
st.sidebar.title("Navigation")
model = st.sidebar.selectbox("Choose a model", ["koclip-base", "koclip-large"])
page = st.sidebar.selectbox("Choose a task", list(PAGES.keys()))
PAGES[page].app(model)