Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def get_matches(query, db_name="miread_contrastive"):
|
|
52 |
Wrapper to call the similarity search on the required index
|
53 |
"""
|
54 |
matches = vecdbs[INDEXES.index(
|
55 |
-
db_name)].similarity_search_with_score(query, k=
|
56 |
return matches
|
57 |
|
58 |
|
@@ -89,7 +89,7 @@ def inference(query, model="miread_contrastive"):
|
|
89 |
auth_counts[author] = 1
|
90 |
else:
|
91 |
auth_counts[author] += 1
|
92 |
-
n_output = gr.Dataframe.update(value=n_table, visible=True)
|
93 |
return n_output
|
94 |
|
95 |
|
|
|
52 |
Wrapper to call the similarity search on the required index
|
53 |
"""
|
54 |
matches = vecdbs[INDEXES.index(
|
55 |
+
db_name)].similarity_search_with_score(query, k=30)
|
56 |
return matches
|
57 |
|
58 |
|
|
|
89 |
auth_counts[author] = 1
|
90 |
else:
|
91 |
auth_counts[author] += 1
|
92 |
+
n_output = gr.Dataframe.update(value=n_table[:10], visible=True)
|
93 |
return n_output
|
94 |
|
95 |
|