Silvia Terragni commited on
Commit
1ed0e02
1 Parent(s): 7c998c0

added logo in the sidebar

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -2,8 +2,14 @@ import streamlit as st
2
  import image2text
3
  import text2image
4
  import home
 
5
 
6
  PAGES = {"Introduction": home, "Text to Image": text2image, "Image to Text": image2text}
 
7
  st.sidebar.title("Explore our CLIP-Italian demo")
 
 
 
 
8
  page = st.sidebar.radio("", list(PAGES.keys()))
9
  PAGES[page].app()
 
2
  import image2text
3
  import text2image
4
  import home
5
+ from PIL import Image
6
 
7
  PAGES = {"Introduction": home, "Text to Image": text2image, "Image to Text": image2text}
8
+
9
  st.sidebar.title("Explore our CLIP-Italian demo")
10
+
11
+ logo = Image.open('static/img/clip_italian_logo.png')
12
+ st.sidebar.image(logo, caption='CLIP-Italian logo')
13
+
14
  page = st.sidebar.radio("", list(PAGES.keys()))
15
  PAGES[page].app()