Spaces:
Sleeping
Sleeping
Pedro Gengo
commited on
Commit
·
da7e9fe
1
Parent(s):
06b44ea
Adding app
Browse files- app.py +3 -3
- data/embeddings.npy +0 -3
app.py
CHANGED
@@ -30,8 +30,8 @@ def encode_query(query):
|
|
30 |
|
31 |
def search_nearest_papers(query, k=5):
|
32 |
query_embeddings = encode_query(query)
|
33 |
-
D, I = index.search(query_embeddings
|
34 |
-
return papers_df.iloc[I[0]][["Title", "
|
35 |
|
36 |
demo = gr.Interface(
|
37 |
search_nearest_papers,
|
@@ -40,7 +40,7 @@ demo = gr.Interface(
|
|
40 |
gr.Slider(1, 10, value=5),
|
41 |
],
|
42 |
gr.Dataframe(
|
43 |
-
headers=["Title", "
|
44 |
),
|
45 |
title="CVPR 2024 Paper Search",
|
46 |
description="Semantic search over CPVR 2024 paper summary. This app was made using the data available on https://github.com/harpreetsahota204/CVPR-2024-Papers.",
|
|
|
30 |
|
31 |
def search_nearest_papers(query, k=5):
|
32 |
query_embeddings = encode_query(query)
|
33 |
+
D, I = index.search(query_embeddings, k)
|
34 |
+
return papers_df.iloc[I[0]][["Title", "pdf_path"]]
|
35 |
|
36 |
demo = gr.Interface(
|
37 |
search_nearest_papers,
|
|
|
40 |
gr.Slider(1, 10, value=5),
|
41 |
],
|
42 |
gr.Dataframe(
|
43 |
+
headers=["Title", "PDF"],
|
44 |
),
|
45 |
title="CVPR 2024 Paper Search",
|
46 |
description="Semantic search over CPVR 2024 paper summary. This app was made using the data available on https://github.com/harpreetsahota204/CVPR-2024-Papers.",
|
data/embeddings.npy
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:939ae59573f4807a026ca5eeaa9bafc6daa3cbb6a7fb9b1f163991c6ede3ac09
|
3 |
-
size 3200
|
|
|
|
|
|
|
|