Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -502,7 +502,7 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
|
|
502 |
# Button to trigger the filtering
|
503 |
with gr.Row():
|
504 |
search_button = gr.Button("Search")
|
505 |
-
clear_button = gr.
|
506 |
search_button.click(filter_paragraphs, inputs=keyword_input, outputs=[paragraph_1_dropdown, paragraph_2_dropdown])
|
507 |
clear_button.click(clear_paragraphs, inputs=[], outputs=[paragraph_1_dropdown, paragraph_2_dropdown])
|
508 |
# Extract paragraphs from PDFs and update dropdowns
|
|
|
502 |
# Button to trigger the filtering
|
503 |
with gr.Row():
|
504 |
search_button = gr.Button("Search")
|
505 |
+
clear_button = gr.Button("Clear")
|
506 |
search_button.click(filter_paragraphs, inputs=keyword_input, outputs=[paragraph_1_dropdown, paragraph_2_dropdown])
|
507 |
clear_button.click(clear_paragraphs, inputs=[], outputs=[paragraph_1_dropdown, paragraph_2_dropdown])
|
508 |
# Extract paragraphs from PDFs and update dropdowns
|