Update demo/modules/search.py
Browse files- 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],
|
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)
|