File size: 441 Bytes
f1d50b1
 
 
a811816
14261e1
48a1fa8
587ab22
f1d50b1
14261e1
a811816
14261e1
 
a811816
14261e1
f1d50b1
 
587ab22
a811816
f1d50b1
cf349fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import streamlit as st

import image2text
import intro
import text2image
import text2patch
from config import MODEL_LIST

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", MODEL_LIST)
page = st.sidebar.selectbox("Navigate to...", list(PAGES.keys()))

PAGES[page].app(model)