santarabantoosoo commited on
Commit
4f82b3b
1 Parent(s): ed943fc
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -259,15 +259,16 @@ with gr.Blocks() as demo:
259
  plot_output = gr.Plot(elem_id = 1)
260
  freq_button = gr.Button("Submit")
261
 
262
- freq_button.click(display_freq_plot, inputs=inputs, outputs=plot_output)
263
 
264
  with gr.TabItem("Sentiment analysis"):
265
  text_input = gr.Radio(choices = ['Sentiment distribution', 'Word clouds', 'Time series'], label = 'Choose ur plot')
266
  sent_plot = gr.Plot()
267
  sent_button = gr.Button("Submit")
268
 
269
- sent_button.click(display_plot, inputs=text_input, outputs= sent_plot)
270
-
 
 
271
 
272
  demo.launch(debug=True, show_error = True);
273
 
 
259
  plot_output = gr.Plot(elem_id = 1)
260
  freq_button = gr.Button("Submit")
261
 
 
262
 
263
  with gr.TabItem("Sentiment analysis"):
264
  text_input = gr.Radio(choices = ['Sentiment distribution', 'Word clouds', 'Time series'], label = 'Choose ur plot')
265
  sent_plot = gr.Plot()
266
  sent_button = gr.Button("Submit")
267
 
268
+
269
+ sent_button.click(display_plot, inputs=text_input, outputs= sent_plot)
270
+ freq_button.click(display_freq_plot, inputs=inputs, outputs=plot_output)
271
+
272
 
273
  demo.launch(debug=True, show_error = True);
274