Spaces:
Sleeping
Sleeping
Vivien
commited on
Commit
·
74074fa
1
Parent(s):
5185219
Add instructions for advanced use
Browse files
app.py
CHANGED
@@ -101,6 +101,12 @@ description = """
|
|
101 |
*Inspired by [Unsplash Image Search](https://github.com/haltakov/natural-language-image-search) from Vladimir Haltakov and [Alph, The Sacred River](https://github.com/thoppe/alph-the-sacred-river) from Travis Hoppe*
|
102 |
"""
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
def main():
|
106 |
st.markdown(
|
@@ -137,6 +143,9 @@ def main():
|
|
137 |
unsafe_allow_html=True,
|
138 |
)
|
139 |
st.sidebar.markdown(description)
|
|
|
|
|
|
|
140 |
_, c, _ = st.columns((1, 3, 1))
|
141 |
if "query" in st.session_state:
|
142 |
query = c.text_input("", value=st.session_state["query"])
|
|
|
101 |
*Inspired by [Unsplash Image Search](https://github.com/haltakov/natural-language-image-search) from Vladimir Haltakov and [Alph, The Sacred River](https://github.com/thoppe/alph-the-sacred-river) from Travis Hoppe*
|
102 |
"""
|
103 |
|
104 |
+
howto = """
|
105 |
+
- Click on an image to use it as a query and find similar images
|
106 |
+
- Several queries, including one based on an image, can be combined (use "**;**" as a separator)
|
107 |
+
- If the input includes "**/**", the part right of "**/**" will be used as a negative query
|
108 |
+
"""
|
109 |
+
|
110 |
|
111 |
def main():
|
112 |
st.markdown(
|
|
|
143 |
unsafe_allow_html=True,
|
144 |
)
|
145 |
st.sidebar.markdown(description)
|
146 |
+
with st.sidebar.expander("Advanced use"):
|
147 |
+
st.markdown(howto)
|
148 |
+
|
149 |
_, c, _ = st.columns((1, 3, 1))
|
150 |
if "query" in st.session_state:
|
151 |
query = c.text_input("", value=st.session_state["query"])
|