Update app.py
Browse files
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()
|