louisbrulenaudet commited on
Commit
f3ed445
1 Parent(s): 5dc4163

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -194,8 +194,7 @@ def search(
194
 
195
  return gr.Dataframe(
196
  value=results_df,
197
- type="polars",
198
- render=True
199
  )
200
 
201
 
@@ -237,7 +236,8 @@ with gr.Blocks(title="Quantized Retrieval") as demo:
237
  with gr.Row():
238
  with gr.Column():
239
  output = gr.Dataframe(
240
- render=False
 
241
  )
242
 
243
  query.submit(
@@ -247,9 +247,7 @@ with gr.Blocks(title="Quantized Retrieval") as demo:
247
  top_k,
248
  rescore_multiplier
249
  ],
250
- outputs=[
251
- output
252
- ]
253
  )
254
 
255
  search_button.click(
@@ -259,9 +257,7 @@ with gr.Blocks(title="Quantized Retrieval") as demo:
259
  top_k,
260
  rescore_multiplier
261
  ],
262
- outputs=[
263
- output,
264
- ]
265
  )
266
 
267
 
 
194
 
195
  return gr.Dataframe(
196
  value=results_df,
197
+ visible=True
 
198
  )
199
 
200
 
 
236
  with gr.Row():
237
  with gr.Column():
238
  output = gr.Dataframe(
239
+ visible=False,
240
+ type="polars"
241
  )
242
 
243
  query.submit(
 
247
  top_k,
248
  rescore_multiplier
249
  ],
250
+ outputs=output
 
 
251
  )
252
 
253
  search_button.click(
 
257
  top_k,
258
  rescore_multiplier
259
  ],
260
+ outputs=output
 
 
261
  )
262
 
263