Manasa1 commited on
Commit
e03238f
·
verified ·
1 Parent(s): dc86097

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -55,14 +55,16 @@ def app_interface():
55
  # LinePlot component for displaying the ESG data
56
  plot_output = gr.LinePlot(label="ESG Scores Plot", x="ESG Category", y="Score", overlay_point=True)
57
 
58
- scatter_plot = gr.ScatterPlot(label="ESG Scores Scatter Plot", x="ESG Category", y="Score", overlay_point=True)
 
 
59
  # File output for CSV download
60
  csv_output = gr.File(label="Download CSV")
61
 
62
  # Define the action when the "Generate ESG Plot" button is clicked
63
  plot_button.click(fn=fetch_esg_data,
64
  inputs=company,
65
- outputs=[plot_output, scatter_plot, csv_output])
66
 
67
  with gr.Tab("Tab 2"):
68
  gr.Markdown("This is Tab 2. You can add more content here.")
 
55
  # LinePlot component for displaying the ESG data
56
  plot_output = gr.LinePlot(label="ESG Scores Plot", x="ESG Category", y="Score", overlay_point=True)
57
 
58
+ bar_plot = gr.BarPlot(label="Sample Bar Plot", x="ESG Category", y="Score", x_bins=10, y_aggregate="sum")
59
+
60
+
61
  # File output for CSV download
62
  csv_output = gr.File(label="Download CSV")
63
 
64
  # Define the action when the "Generate ESG Plot" button is clicked
65
  plot_button.click(fn=fetch_esg_data,
66
  inputs=company,
67
+ outputs=[plot_output,bar_plot, csv_output])
68
 
69
  with gr.Tab("Tab 2"):
70
  gr.Markdown("This is Tab 2. You can add more content here.")