Manasa1 commited on
Commit
935f6c1
·
verified ·
1 Parent(s): 0919ad9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -52,7 +52,9 @@ def app_interface():
52
  plot_button = gr.Button("Generate ESG Plot")
53
 
54
  # LinePlot component for displaying the ESG data
55
- plot_output = gr.LinePlot(label="ESG Scores Plot", x="ESG Category", y="Score", overlay_point=True)
 
 
56
 
57
  # Textbox to display messages
58
  message = gr.Textbox(label="Message", interactive=False)
@@ -63,7 +65,7 @@ def app_interface():
63
  # Define the action when the "Generate ESG Plot" button is clicked
64
  plot_button.click(fn=fetch_esg_data,
65
  inputs=company,
66
- outputs=[plot_output, csv_output])
67
 
68
  return app
69
 
 
52
  plot_button = gr.Button("Generate ESG Plot")
53
 
54
  # LinePlot component for displaying the ESG data
55
+ line_plot = gr.LinePlot(label="ESG Scores Plot", x="ESG Category", y="Score", overlay_point=True)
56
+
57
+ scatter_plot = gr.ScatterPlot(label="ESG Scores Scatter Plot", x="ESG Category", y="Score", overlay_point=True)
58
 
59
  # Textbox to display messages
60
  message = gr.Textbox(label="Message", interactive=False)
 
65
  # Define the action when the "Generate ESG Plot" button is clicked
66
  plot_button.click(fn=fetch_esg_data,
67
  inputs=company,
68
+ outputs=[csv_output, line_plot, scatterplot])
69
 
70
  return app
71