robertselvam commited on
Commit
fac3d77
1 Parent(s): a3de190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -353,7 +353,7 @@ class KeyValueExtractor:
353
  plot_for_day =gr.Plot(label="Sentiment for Last Day", size=(500, 600))
354
  with gr.Row(elem_id="col-container"):
355
  with gr.Column(scale=1.0, min_width=150):
356
- analyse_sentiment = gr.Button("Analyse Sentiment")
357
  with gr.Row(elem_id="col-container"):
358
  with gr.Column(scale=1.0, min_width=150, ):
359
  one_year_summary = gr.Textbox(label="Summary For One Year Perfomance",lines = 12)
@@ -362,10 +362,10 @@ class KeyValueExtractor:
362
  one_year = gr.Button("Analyse One Year Summary")
363
  with gr.Row(elem_id="col-container"):
364
  with gr.Column(scale=1.0, min_width=0):
365
- plot_for_year =gr.Plot(label="Sentiment for Last Day", size=(500, 600))
366
  with gr.Row(elem_id="col-container"):
367
  with gr.Column(scale=1.0, min_width=150):
368
- analyse_sentiment_for_year = gr.Button("Analyse Sentiment")
369
 
370
  analyse.click(self.main, input_news, [result_summary,key_value_pair_result])
371
  analyse_sentiment.click(self.display_graph,result_summary,[plot_for_day])
 
353
  plot_for_day =gr.Plot(label="Sentiment for Last Day", size=(500, 600))
354
  with gr.Row(elem_id="col-container"):
355
  with gr.Column(scale=1.0, min_width=150):
356
+ analyse_sentiment = gr.Button("Analyse Sentiment For Last Day")
357
  with gr.Row(elem_id="col-container"):
358
  with gr.Column(scale=1.0, min_width=150, ):
359
  one_year_summary = gr.Textbox(label="Summary For One Year Perfomance",lines = 12)
 
362
  one_year = gr.Button("Analyse One Year Summary")
363
  with gr.Row(elem_id="col-container"):
364
  with gr.Column(scale=1.0, min_width=0):
365
+ plot_for_year =gr.Plot(label="Sentiment for One Year", size=(500, 600))
366
  with gr.Row(elem_id="col-container"):
367
  with gr.Column(scale=1.0, min_width=150):
368
+ analyse_sentiment_for_year = gr.Button("Analyse Sentiment For One Year")
369
 
370
  analyse.click(self.main, input_news, [result_summary,key_value_pair_result])
371
  analyse_sentiment.click(self.display_graph,result_summary,[plot_for_day])