Spaces:
Build error
Build error
File size: 432 Bytes
f1d50b1 a811816 14261e1 48a1fa8 f1d50b1 14261e1 a811816 14261e1 a811816 14261e1 f1d50b1 532be59 a811816 f1d50b1 cf349fd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import streamlit as st
import image2text
import intro
import text2image
import text2patch
PAGES = {
"Introduction": intro,
"Text to Image": text2image,
"Image to Text": image2text,
"Text to Patch": text2patch,
}
st.sidebar.title("Navigation")
model = st.sidebar.selectbox("Choose a model", ["koclip-base", "koclip-large"])
page = st.sidebar.selectbox("Navigate to...", list(PAGES.keys()))
PAGES[page].app(model)
|