File size: 408 Bytes
027887e
ce649db
 
 
1ed0e02
ce649db
6985586
1ed0e02
6985586
1ed0e02
 
 
 
6985586
ce649db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import streamlit as st
import image2text
import text2image
import home
from PIL import Image

PAGES = {"Introduction": home, "Text to Image": text2image, "Image to Text": image2text}

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()