Spaces:
Runtime error
Runtime error
LayBraid
commited on
Commit
•
4e2f1ce
1
Parent(s):
cd52a4f
:construction: add contributing and home
Browse files- app.py +6 -1
- contribute.png +0 -0
- contributing.py +11 -0
- home.py +13 -0
app.py
CHANGED
@@ -1,14 +1,19 @@
|
|
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("space.jpeg")
|
10 |
st.sidebar.markdown("""
|
11 |
-
|
12 |
""")
|
13 |
selection = st.sidebar.radio("Go to", list(PAGES.keys()))
|
14 |
page = PAGES[selection]
|
|
|
1 |
import streamlit as st
|
2 |
import text_to_image
|
3 |
+
import home
|
4 |
+
import contributing
|
5 |
+
|
6 |
|
7 |
PAGES = {
|
8 |
+
"Home": home,
|
9 |
"Retrieve Images given Text": text_to_image,
|
10 |
+
"Contribute to Space Vector": contributing,
|
11 |
}
|
12 |
|
13 |
st.sidebar.title("Space Vector")
|
14 |
st.sidebar.image("space.jpeg")
|
15 |
st.sidebar.markdown("""
|
16 |
+
SpaceVector is a semantic search engine. It allows you to find your texts in images.
|
17 |
""")
|
18 |
selection = st.sidebar.radio("Go to", list(PAGES.keys()))
|
19 |
page = PAGES[selection]
|
contribute.png
ADDED
contributing.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
|
4 |
+
def app():
|
5 |
+
st.image("contribute.png")
|
6 |
+
st.title("How to contribute to Space Vector")
|
7 |
+
st.markdown("""Space vector is available on [GitHub](https://github.com/PoCInnovation/SpaceVector). You can
|
8 |
+
contribute to the project by following the steps presents in the [CONTRIBUTING.md](
|
9 |
+
https://github.com/PoCInnovation/SpaceVector/blob/main/CONTRIBUTING.md).
|
10 |
+
|
11 |
+
""")
|
home.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import text_to_image
|
3 |
+
|
4 |
+
|
5 |
+
def app():
|
6 |
+
st.title("Space Vector")
|
7 |
+
st.image("space.jpeg")
|
8 |
+
st.markdown("""
|
9 |
+
Description
|
10 |
+
|
11 |
+
This is a demo of Space Vector.
|
12 |
+
""")
|
13 |
+
|