Cachoups commited on
Commit
c9af7fb
·
verified ·
1 Parent(s): 9995b35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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= generate_text, inputs = [stored_df1, country_1_dropdown, sheet], outputs = text_result_df1)
 
 
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