tab?
Browse files
app.py
CHANGED
|
@@ -27,8 +27,10 @@ with gr.Blocks() as demo:
|
|
| 27 |
with gr.Row():
|
| 28 |
with gr.Column(scale=1):
|
| 29 |
org_choice= gr.Dropdown(organizations, default="Alphabet", label="Organizations", info="Pick an organization to explore their environmental disclosures", interactive=True)
|
| 30 |
-
|
| 31 |
with gr.Column(scale=4):
|
| 32 |
gr.Plot(fig)
|
| 33 |
|
|
|
|
|
|
|
| 34 |
demo.launch()
|
|
|
|
| 27 |
with gr.Row():
|
| 28 |
with gr.Column(scale=1):
|
| 29 |
org_choice= gr.Dropdown(organizations, default="Alphabet", label="Organizations", info="Pick an organization to explore their environmental disclosures", interactive=True)
|
| 30 |
+
|
| 31 |
with gr.Column(scale=4):
|
| 32 |
gr.Plot(fig)
|
| 33 |
|
| 34 |
+
org_choice.select(generate_figure, inputs=org_choice, outputs=fig)
|
| 35 |
+
|
| 36 |
demo.launch()
|