DeepNets commited on
Commit
6405caf
·
verified ·
1 Parent(s): 076433e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -117,6 +117,13 @@ with gr.Blocks(theme='soft') as app:
117
  label='Something similar to me??'
118
  )
119
 
 
 
 
 
 
 
 
120
  # Search - On Click
121
  search_btn.click(
122
  fn=similarity_search,
 
117
  label='Something similar to me??'
118
  )
119
 
120
+ # Input - On Change
121
+ query_image.change(
122
+ fn=similarity_search,
123
+ inputs=[query_image, n_images],
124
+ outputs=[pred_class, output_gallery]
125
+ )
126
+
127
  # Search - On Click
128
  search_btn.click(
129
  fn=similarity_search,