LTEnjoy commited on
Commit
db29cff
1 Parent(s): 9e143f1

Update demo/modules/search.py

Browse files
Files changed (1) hide show
  1. demo/modules/search.py +1 -1
demo/modules/search.py CHANGED
@@ -272,7 +272,7 @@ def build_search_module():
272
  topk = gr.Slider(1, 1000000, 5, step=1, label="Retrieve top k results")
273
 
274
  # Provide examples
275
- examples = gr.Dataset(samples=samples["text"], components=[input], type="index", label="Input examples")
276
 
277
  # Add click event to examples
278
  examples.click(fn=load_example, inputs=[examples], outputs=input)
 
272
  topk = gr.Slider(1, 1000000, 5, step=1, label="Retrieve top k results")
273
 
274
  # Provide examples
275
+ examples = gr.Dataset(samples=samples["text"], components=[input], label="Input examples")
276
 
277
  # Add click event to examples
278
  examples.click(fn=load_example, inputs=[examples], outputs=input)