Cachoups commited on
Commit
29ad3cb
·
verified ·
1 Parent(s): 9936dad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -486,7 +486,7 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
486
  with gr.Row():
487
  search_button = gr.Button("Search")
488
  clear_button = gr.Button("Clear")
489
- search_button.click(filter_paragraphs, inputs=keyword_input, outputs=[pdf1, pdf2])
490
  clear_button.click(clear_paragraphs, inputs=[], outputs=[pdf1, pdf2])
491
  # Extract paragraphs from PDFs and update dropdowns
492
  def update_paragraphs(pdf1, pdf2):
 
486
  with gr.Row():
487
  search_button = gr.Button("Search")
488
  clear_button = gr.Button("Clear")
489
+ search_button.click(filter_paragraphs, inputs=keyword_input, outputs=[paragraph_1_dropdown, paragraph_2_dropdown])
490
  clear_button.click(clear_paragraphs, inputs=[], outputs=[pdf1, pdf2])
491
  # Extract paragraphs from PDFs and update dropdowns
492
  def update_paragraphs(pdf1, pdf2):