Spaces:
Running
Running
Update app.py
Browse files
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,
|
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])
|