aps commited on
Commit
b014efa
·
1 Parent(s): aa4fb95

Updates for better prompts

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -109,7 +109,9 @@ description = """
109
  # FLAVA Semantic Image-Text Search
110
  """
111
  instruction= """
112
- **Enter your query and hit enter**
 
 
113
  """
114
 
115
  credit = """
@@ -127,9 +129,9 @@ howto = """
127
  ## Advanced Use
128
  - Click on an image to use it as a query and find similar images
129
  - Several queries, including one based on an image, can be combined (use "**;**" as a separator).
130
- - Try "sunset at beach; small children".
131
  - If the input includes "**EXCLUDING**", text following it will be used as a negative query.
132
- - Try "a busy city street with dogs" and "a busy city street EXCLUDING dogs".
133
  """
134
 
135
  div_style = {
@@ -186,7 +188,7 @@ def main():
186
  if "query" in st.session_state:
187
  query = c.text_input("", value=st.session_state["query"])
188
  else:
189
- query = c.text_input("", value="a busy city with tall buildings")
190
  corpus = st.radio("", ["Unsplash", "Movies"])
191
 
192
  models_dict = {
 
109
  # FLAVA Semantic Image-Text Search
110
  """
111
  instruction= """
112
+ ### **Enter your query and hit enter**
113
+
114
+ **Things to try:** compare with other models or search for "a field in country side EXCLUDING green"
115
  """
116
 
117
  credit = """
 
129
  ## Advanced Use
130
  - Click on an image to use it as a query and find similar images
131
  - Several queries, including one based on an image, can be combined (use "**;**" as a separator).
132
+ - Try "a person walking on a grass field; red flowers".
133
  - If the input includes "**EXCLUDING**", text following it will be used as a negative query.
134
+ - Try "a field in country side which is green" and "a field in countryside EXCLUDING green".
135
  """
136
 
137
  div_style = {
 
188
  if "query" in st.session_state:
189
  query = c.text_input("", value=st.session_state["query"])
190
  else:
191
+ query = c.text_input("", value="a field in the countryside which is green")
192
  corpus = st.radio("", ["Unsplash", "Movies"])
193
 
194
  models_dict = {