Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -432,11 +432,8 @@ def build_ui():
|
|
| 432 |
with gr.Column(scale=2):
|
| 433 |
output_text = gr.Textbox(label="Indices (0-based)", lines=12, placeholder="[0, 1, 2, ...]")
|
| 434 |
|
| 435 |
-
def run_direct_indices(query: str, k: int) -> str:
|
| 436 |
-
idxs = search(query=query, k=k)
|
| 437 |
-
return str(idxs)
|
| 438 |
|
| 439 |
-
search_button.click(
|
| 440 |
|
| 441 |
with gr.Tab("3) Agent (Streaming)"):
|
| 442 |
with gr.Row(equal_height=True):
|
|
|
|
| 432 |
with gr.Column(scale=2):
|
| 433 |
output_text = gr.Textbox(label="Indices (0-based)", lines=12, placeholder="[0, 1, 2, ...]")
|
| 434 |
|
|
|
|
|
|
|
|
|
|
| 435 |
|
| 436 |
+
search_button.click(search, inputs=[query_box, k_slider], outputs=[output_text])
|
| 437 |
|
| 438 |
with gr.Tab("3) Agent (Streaming)"):
|
| 439 |
with gr.Row(equal_height=True):
|