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