Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -322,7 +322,9 @@ with gr.Blocks() as demo:
|
|
322 |
country_1_dropdown.change(fn =change_choices, inputs= stored_df1, outputs= paragraph_1_dropdown)
|
323 |
summarize_btn1_country = gr.Button("Summary for the selected country")
|
324 |
text_result_df1 = gr.Textbox(label="Sentence for excel file 1", lines=2)
|
325 |
-
summarize_btn1_country.click(fn=
|
|
|
|
|
326 |
with gr.Column():
|
327 |
sentiment_results_pdf2 = gr.HighlightedText(label="Sentiment Analysis - PDF 2")
|
328 |
|
|
|
322 |
country_1_dropdown.change(fn =change_choices, inputs= stored_df1, outputs= paragraph_1_dropdown)
|
323 |
summarize_btn1_country = gr.Button("Summary for the selected country")
|
324 |
text_result_df1 = gr.Textbox(label="Sentence for excel file 1", lines=2)
|
325 |
+
summarize_btn1_country.click(fn=lambda country, theme: generate_text(stored_df1, country, theme),
|
326 |
+
inputs=[country_1_dropdown, sheet],
|
327 |
+
outputs=text_result_df1)
|
328 |
with gr.Column():
|
329 |
sentiment_results_pdf2 = gr.HighlightedText(label="Sentiment Analysis - PDF 2")
|
330 |
|