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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,7 +55,7 @@ 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
- 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
@@ -64,7 +64,7 @@ def app_interface():
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.")
 
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
+
59
 
60
 
61
  # File output for CSV download
 
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, csv_output])
68
 
69
  with gr.Tab("Tab 2"):
70
  gr.Markdown("This is Tab 2. You can add more content here.")