Ceyda Cinarel commited on
Commit
6d30f20
1 Parent(s): b82b2c8

add explanation

Browse files
app.py CHANGED
@@ -67,8 +67,6 @@ image_index = load_image_index()
67
  model, processor = load_model()
68
 
69
 
70
-
71
-
72
  # TODO
73
  def add_image_emb(image):
74
  image = Image.open(image).convert("RGB")
@@ -104,7 +102,7 @@ def query_with_images(query_images,query_text):
104
  q_cols=st.beta_columns([5,2,5])
105
 
106
  examples = ["OMG that is disgusting","I'm so scared right now"," I got the job 🎉","Congratulations to all the flax-community week teams","You're awesome","I love you ❤️"]
107
- example_input = q_cols[0].radio("Example Queries :",examples,index=4)
108
  q_cols[2].markdown(
109
  """
110
  Searches among the validation set images if not specified
67
  model, processor = load_model()
68
 
69
 
 
 
70
  # TODO
71
  def add_image_emb(image):
72
  image = Image.open(image).convert("RGB")
102
  q_cols=st.beta_columns([5,2,5])
103
 
104
  examples = ["OMG that is disgusting","I'm so scared right now"," I got the job 🎉","Congratulations to all the flax-community week teams","You're awesome","I love you ❤️"]
105
+ example_input = q_cols[0].radio("Example Queries :",examples,index=4,help="These are examples I wrote off the top of my head. They don't occur in the dataset")
106
  q_cols[2].markdown(
107
  """
108
  Searches among the validation set images if not specified
features/image_embeddings CHANGED
Binary files a/features/image_embeddings and b/features/image_embeddings differ
features/image_embeddings.dat CHANGED
Binary files a/features/image_embeddings.dat and b/features/image_embeddings.dat differ
jpg/EV0a8CxUEAUqhe7.jpg DELETED
Binary file (47.4 kB)
jpg/EV0liWfWoAUvsvH.jpg DELETED
Binary file (13.5 kB)
jpg/EV0v0IPWAAATJdN.jpg DELETED
Binary file (21.1 kB)
jpg/EV1pJdlWkAcvGv9.jpg DELETED
Binary file (54.9 kB)
jpg/EVvezlzWoAYWVvi.jpg DELETED
Binary file (45.9 kB)
jpg/EVvx6VlXsAUVyqD.jpg DELETED
Binary file (25.1 kB)
jpg/EVwKZySU8AA5aNV.jpg DELETED
Binary file (24.6 kB)
jpg/EVwpn5NUcAAzlyD.jpg DELETED
Binary file (15.2 kB)
jpg/EVxmv_hU0AAhQ05.jpg DELETED
Binary file (9.11 kB)