awacke1 commited on
Commit
794518d
1 Parent(s): cdc4bb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -141,7 +141,6 @@ def main():
141
  st.markdown(howto)
142
 
143
 
144
-
145
  st.sidebar.markdown(f"Unsplash has categories that match: backgrounds, photos, nature, iphone, etc")
146
  st.sidebar.markdown(f"Unsplash images contain animals, apps, events, feelings, food, travel, nature, people, religion, sports, things, stock")
147
  st.sidebar.markdown(f"Unsplash things include flag, tree, clock, money, tattoo, arrow, book, car, fireworks, ghost, health, kiss, dance, balloon, crown, eye, house, music, airplane, lighthouse, typewriter, toys")
@@ -149,13 +148,6 @@ def main():
149
  st.sidebar.markdown(f"unsplash people contain baby, life, women, family, girls, pregnancy, society, old people, musician, attractive, bohemian")
150
  st.sidebar.markdown(f"imagenet queries include: photo of, photo of many, sculpture of, rendering of, graffiti of, tattoo of, embroidered, drawing of, plastic, black and white, painting, video game, doodle, origami, sketch, etc")
151
 
152
-
153
-
154
-
155
-
156
- #print(f"{len(imagenet_classes)} classes, {len(imagenet_templates)} templates")
157
- st.sidebar.markdown(imagenetquerytips)
158
-
159
 
160
  _, c, _ = st.columns((1, 3, 1))
161
  if "query" in st.session_state:
@@ -163,7 +155,8 @@ def main():
163
  else:
164
 
165
  query = c.text_input("", value="health; artificial intelligence")
166
- corpus = st.radio("", ["Unsplash", "Movies"])
 
167
  if len(query) > 0:
168
  results = image_search(query, corpus)
169
  clicked = clickable_images(
 
141
  st.markdown(howto)
142
 
143
 
 
144
  st.sidebar.markdown(f"Unsplash has categories that match: backgrounds, photos, nature, iphone, etc")
145
  st.sidebar.markdown(f"Unsplash images contain animals, apps, events, feelings, food, travel, nature, people, religion, sports, things, stock")
146
  st.sidebar.markdown(f"Unsplash things include flag, tree, clock, money, tattoo, arrow, book, car, fireworks, ghost, health, kiss, dance, balloon, crown, eye, house, music, airplane, lighthouse, typewriter, toys")
 
148
  st.sidebar.markdown(f"unsplash people contain baby, life, women, family, girls, pregnancy, society, old people, musician, attractive, bohemian")
149
  st.sidebar.markdown(f"imagenet queries include: photo of, photo of many, sculpture of, rendering of, graffiti of, tattoo of, embroidered, drawing of, plastic, black and white, painting, video game, doodle, origami, sketch, etc")
150
 
 
 
 
 
 
 
 
151
 
152
  _, c, _ = st.columns((1, 3, 1))
153
  if "query" in st.session_state:
 
155
  else:
156
 
157
  query = c.text_input("", value="health; artificial intelligence")
158
+ corpus = st.radio("", ["Unsplash"])
159
+ #corpus = st.radio("", ["Unsplash", "Movies"])
160
  if len(query) > 0:
161
  results = image_search(query, corpus)
162
  clicked = clickable_images(