Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,9 @@ def app_interface():
|
|
52 |
plot_button = gr.Button("Generate ESG Plot")
|
53 |
|
54 |
# LinePlot component for displaying the ESG data
|
55 |
-
|
|
|
|
|
56 |
|
57 |
# Textbox to display messages
|
58 |
message = gr.Textbox(label="Message", interactive=False)
|
@@ -63,7 +65,7 @@ def app_interface():
|
|
63 |
# Define the action when the "Generate ESG Plot" button is clicked
|
64 |
plot_button.click(fn=fetch_esg_data,
|
65 |
inputs=company,
|
66 |
-
outputs=[
|
67 |
|
68 |
return app
|
69 |
|
|
|
52 |
plot_button = gr.Button("Generate ESG Plot")
|
53 |
|
54 |
# LinePlot component for displaying the ESG data
|
55 |
+
line_plot = gr.LinePlot(label="ESG Scores Plot", x="ESG Category", y="Score", overlay_point=True)
|
56 |
+
|
57 |
+
scatter_plot = gr.ScatterPlot(label="ESG Scores Scatter Plot", x="ESG Category", y="Score", overlay_point=True)
|
58 |
|
59 |
# Textbox to display messages
|
60 |
message = gr.Textbox(label="Message", interactive=False)
|
|
|
65 |
# Define the action when the "Generate ESG Plot" button is clicked
|
66 |
plot_button.click(fn=fetch_esg_data,
|
67 |
inputs=company,
|
68 |
+
outputs=[csv_output, line_plot, scatterplot])
|
69 |
|
70 |
return app
|
71 |
|