Cachoups commited on
Commit
9031bf0
·
verified ·
1 Parent(s): 859ca15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -85,7 +85,7 @@ with gr.Blocks() as demo:
85
  stored_paragraphs_1, stored_paragraphs_2 = extract_and_summarize(pdf1, pdf2)
86
  updated_dropdown_1 = [f"Paragraph {i+1}: {p[:100]}..." for i, p in enumerate(stored_paragraphs_1)]
87
  updated_dropdown_2 = [f"Paragraph {i+1}: {p[:100]}..." for i, p in enumerate(stored_paragraphs_2)]
88
- return gr.Dropdown.update(choices=updated_dropdown_1),gr.Dropdown.update(choices=updated_dropdown_2)
89
 
90
  b1.click(fn=update_paragraphs, inputs=[pdf1, pdf2], outputs=[paragraph_1_dropdown, paragraph_2_dropdown])
91
 
 
85
  stored_paragraphs_1, stored_paragraphs_2 = extract_and_summarize(pdf1, pdf2)
86
  updated_dropdown_1 = [f"Paragraph {i+1}: {p[:100]}..." for i, p in enumerate(stored_paragraphs_1)]
87
  updated_dropdown_2 = [f"Paragraph {i+1}: {p[:100]}..." for i, p in enumerate(stored_paragraphs_2)]
88
+ return gr.update(choices=updated_dropdown_1),gr.update(choices=updated_dropdown_2)
89
 
90
  b1.click(fn=update_paragraphs, inputs=[pdf1, pdf2], outputs=[paragraph_1_dropdown, paragraph_2_dropdown])
91