Spaces:
Running
Running
File size: 480 Bytes
027887e ce649db da172d6 1ed0e02 ce649db da172d6 1ed0e02 6985586 1ed0e02 da172d6 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 |
import streamlit as st
import image2text
import text2image
import home
import examples
from PIL import Image
PAGES = {
"Introduction": home,
"Text to Image": text2image,
"Image to Text": image2text,
"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()
|