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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -55,16 +55,14 @@ 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
- # Textbox to display messages
59
- message = gr.Textbox(label="Message", interactive=False)
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, 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
+ 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.")