davidberenstein1957 HF staff commited on
Commit
53ff92d
·
verified ·
1 Parent(s): d74bc82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ with gr.Blocks() as demo:
42
 
43
  Part of [smol blueprint](https://github.com/huggingface/smol-blueprint) - a smol blueprint for AI development, focusing on applied examples of RAG, information extraction, analysis and fine-tuning in the age of LLMs. """)
44
  query = gr.Textbox(label="Query")
45
- k = gr.Slider(1, 10, value=5, label="Number of results")
46
  btn = gr.Button("Search")
47
  results = gr.Dataframe(headers=["url", "chunk", "distance"])
48
  btn.click(fn=similarity_search, inputs=[query, k], outputs=[results])
 
42
 
43
  Part of [smol blueprint](https://github.com/huggingface/smol-blueprint) - a smol blueprint for AI development, focusing on applied examples of RAG, information extraction, analysis and fine-tuning in the age of LLMs. """)
44
  query = gr.Textbox(label="Query")
45
+ k = gr.Slider(1, 50, value=5, label="Number of results")
46
  btn = gr.Button("Search")
47
  results = gr.Dataframe(headers=["url", "chunk", "distance"])
48
  btn.click(fn=similarity_search, inputs=[query, k], outputs=[results])