Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=[
|
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):
|