Silvia Terragni commited on
Commit
6985586
1 Parent(s): 5b9781c

added radio button

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. image2text.py +4 -0
app.py CHANGED
@@ -3,7 +3,7 @@ import image2text
3
  import text2image
4
  import home
5
 
6
- PAGES = {"Home": home, "Text to Image": text2image, "Image to Text": image2text}
7
- st.sidebar.title("Navigation")
8
- page = st.sidebar.selectbox("Choose a task", list(PAGES.keys()))
9
  PAGES[page].app()
 
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()
image2text.py CHANGED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ def app():
4
+ pass