atrytone commited on
Commit
117c8b1
·
1 Parent(s): 30872c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=10)
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