anzorq commited on
Commit
8bc2bea
·
1 Parent(s): 0d7ddc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,6 +52,6 @@ with gr.Blocks() as demo:
52
  query_embedding = model.encode([query], convert_to_tensor=True)
53
  return perform_similarity_search(query_embedding, embeddings, space_ids, descriptions, top_k=num_results)
54
 
55
- input.submit(search, inputs=[input, num_results], outputs=df_output)
56
 
57
  demo.launch()
 
52
  query_embedding = model.encode([query], convert_to_tensor=True)
53
  return perform_similarity_search(query_embedding, embeddings, space_ids, descriptions, top_k=num_results)
54
 
55
+ input.submit(search, inputs=[input, num_results], outputs=df_output, api_name="search")
56
 
57
  demo.launch()