koclip / app.py
jaketae's picture
feature: add streamlit backbone
f1d50b1
raw history blame
No virus
314 Bytes
import streamlit as st
import image2text
import text2image
PAGES = {"Text to Image": text2image, "Image to Text": image2text}
st.sidebar.title("Navigation")
model = st.sidebar.radio("Model", ["koclip/koclip", "koclip/koclip-large"])
page = st.sidebar.radio("Go to", list(PAGES.keys()))
PAGES[page].app(model)