File size: 534 Bytes
027887e
ce649db
 
ea3b7ec
ce649db
da172d6
1ed0e02
ce649db
da172d6
 
 
 
ea3b7ec
da172d6
 
1ed0e02
6985586
1ed0e02
da172d6
a9e905c
1ed0e02
6985586
ce649db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import streamlit as st
import image2text
import text2image
import localization
import home
import examples
from PIL import Image

PAGES = {
    "Introduction": home,
    "Text to Image": text2image,
    "Image to Text": image2text,
    "Localization": localization,
    "Examples & Applications": examples,
}

st.sidebar.title("Explore our CLIP-Italian demo")

logo = Image.open("static/img/clip_italian_logo.png")
st.sidebar.image(logo, caption="CLIP-Italian logo")

page = st.sidebar.radio("", list(PAGES.keys()))
PAGES[page].app()