Spaces:
Runtime error
Runtime error
norw
Browse files
app.py
CHANGED
|
@@ -77,11 +77,11 @@ with gr.Blocks() as demo:
|
|
| 77 |
lines=1,
|
| 78 |
placeholder="Kollisjon mellom to kjøretøy.",
|
| 79 |
)
|
| 80 |
-
k_slider = gr.Slider(minimum=1, maximum=10, label="
|
| 81 |
|
| 82 |
-
search_btn = gr.Button("
|
| 83 |
|
| 84 |
-
output = gr.Textbox(label="
|
| 85 |
|
| 86 |
# from the selected URL, find the index in the df:
|
| 87 |
search_btn.click(faiss_search, inputs=[case_dropdown, query, k_slider], outputs=[output])
|
|
|
|
| 77 |
lines=1,
|
| 78 |
placeholder="Kollisjon mellom to kjøretøy.",
|
| 79 |
)
|
| 80 |
+
k_slider = gr.Slider(minimum=1, maximum=10, label="Antall treff", value=5, step=1)
|
| 81 |
|
| 82 |
+
search_btn = gr.Button("Søk")
|
| 83 |
|
| 84 |
+
output = gr.Textbox(label="Resultater", lines=10)
|
| 85 |
|
| 86 |
# from the selected URL, find the index in the df:
|
| 87 |
search_btn.click(faiss_search, inputs=[case_dropdown, query, k_slider], outputs=[output])
|