koclip / app.py
devtrent's picture
Text to image Search Engine demo
cf349fd
raw history blame
No virus
325 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.selectbox("Choose a model", ["koclip", "koclip-large"])
page = st.sidebar.selectbox("Choose a task", list(PAGES.keys()))
PAGES[page].app(model)