Spaces:
Sleeping
Sleeping
Silvia Terragni commited on
Commit ·
6985586
1
Parent(s): 5b9781c
added radio button
Browse files- app.py +3 -3
- image2text.py +4 -0
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import image2text
|
|
| 3 |
import text2image
|
| 4 |
import home
|
| 5 |
|
| 6 |
-
PAGES = {"
|
| 7 |
-
st.sidebar.title("
|
| 8 |
-
page = st.sidebar.
|
| 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
|