TenPoisk commited on
Commit
0be0137
·
1 Parent(s): 504bf33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -5,6 +5,9 @@ import pandas as pd, numpy as np
5
  from transformers import CLIPProcessor, CLIPModel
6
  from st_clickable_images import clickable_images
7
 
 
 
 
8
  @st.cache(
9
  show_spinner=False,
10
  hash_funcs={
@@ -93,6 +96,7 @@ def image_search(query, corpus, n_results=num_results):
93
  description = """
94
  # ImgLib
95
  **Enter your query and hit enter**
 
96
  """
97
 
98
  howto = """
@@ -148,6 +152,7 @@ def main():
148
  st.sidebar.markdown(f"unsplash feelings include funny, heart, love, cool, congratulations, love, scary, cute, friendship, inspirational, hug, sad, cursed, beautiful, crazy, respect, transformation, peaceful, happy")
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
  _, c, _ = st.columns((1, 3, 1))
 
5
  from transformers import CLIPProcessor, CLIPModel
6
  from st_clickable_images import clickable_images
7
 
8
+
9
+ num_results=75
10
+
11
  @st.cache(
12
  show_spinner=False,
13
  hash_funcs={
 
96
  description = """
97
  # ImgLib
98
  **Enter your query and hit enter**
99
+ **by Evgeniy Hristoforu**
100
  """
101
 
102
  howto = """
 
152
  st.sidebar.markdown(f"unsplash feelings include funny, heart, love, cool, congratulations, love, scary, cute, friendship, inspirational, hug, sad, cursed, beautiful, crazy, respect, transformation, peaceful, happy")
153
  st.sidebar.markdown(f"unsplash people contain baby, life, women, family, girls, pregnancy, society, old people, musician, attractive, bohemian")
154
  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")
155
+ st.sidebar.markdown(f"by Evgeniy Hristoforu")
156
 
157
 
158
  _, c, _ = st.columns((1, 3, 1))