manu commited on
Commit
72fadf7
·
verified ·
1 Parent(s): f304a83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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(run_direct_indices, inputs=[query_box, k_slider], outputs=[output_text])
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):