Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
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,
|
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.")
|