Spaces:
Runtime error
Runtime error
LayBraid
commited on
Commit
•
5ddf50c
1
Parent(s):
236d1cb
:construction: update app
Browse files- app.py +12 -4
- requirements.txt +5 -1
- text_to_image.py +5 -0
app.py
CHANGED
@@ -1,7 +1,15 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
-
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
+
import text_to_image
|
3 |
|
4 |
+
PAGES = {
|
5 |
+
"Retrieve Images given Text": text_to_image,
|
6 |
+
}
|
7 |
|
8 |
+
st.sidebar.title("Space Vector")
|
9 |
+
st.sidebar.image("thumbnail.jpg")
|
10 |
+
st.sidebar.markdown("""
|
11 |
+
Description
|
12 |
+
""")
|
13 |
+
selection = st.sidebar.radio("Go to", list(PAGES.keys()))
|
14 |
+
page = PAGES[selection]
|
15 |
+
page.app()
|
requirements.txt
CHANGED
@@ -1 +1,5 @@
|
|
1 |
-
streamlit==1.2.0
|
|
|
|
|
|
|
|
|
|
1 |
+
streamlit==1.2.0
|
2 |
+
torch~=1.7.1
|
3 |
+
clip~=0.2.0
|
4 |
+
requests~=2.27.1
|
5 |
+
Pillow~=9.0.1
|
text_to_image.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
|
4 |
+
def app():
|
5 |
+
st.title("Text to Image")
|