atrytone commited on
Commit
30872c5
·
1 Parent(s): 701a70b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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=60)
56
  return matches
57
 
58
 
@@ -115,6 +115,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
115
  visible=True,
116
  label='Model A',
117
  show_label = True,
 
118
  scale=1
119
  )
120
  l_btn = gr.Button(value="Model A is better",scale=1)
@@ -127,6 +128,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
127
  visible=True,
128
  label='Model B',
129
  show_label = True,
 
130
  scale=1
131
  )
132
  r_btn = gr.Button(value="Model B is better",scale=1)
 
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
 
 
115
  visible=True,
116
  label='Model A',
117
  show_label = True,
118
+ overflow_row_behaviour='paginate',
119
  scale=1
120
  )
121
  l_btn = gr.Button(value="Model A is better",scale=1)
 
128
  visible=True,
129
  label='Model B',
130
  show_label = True,
131
+ overflow_row_behaviour='paginate',
132
  scale=1
133
  )
134
  r_btn = gr.Button(value="Model B is better",scale=1)