Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,12 @@ with gr.Blocks() as demo:
|
|
| 34 |
to the first quarter of 2025 in our analysis. We examined the level of environmental impact transparency for each model based on key information \
|
| 35 |
from the Epoch AI dataset (e.g., model accessibility, training compute estimation method) as well as from individual model release content \
|
| 36 |
(e.g., paper, model card, announcement).')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
with gr.Row():
|
| 38 |
with gr.Column(scale=1):
|
| 39 |
org_choice= gr.Dropdown(organizations, value="Alphabet", label="Organizations", info="Pick an organization to explore their environmental disclosures", interactive=True)
|
|
@@ -45,12 +51,7 @@ with gr.Blocks() as demo:
|
|
| 45 |
gr.Markdown("### Data by Organization")
|
| 46 |
fig = generate_figure(org_choice)
|
| 47 |
plt = gr.Plot(fig)
|
| 48 |
-
|
| 49 |
-
with gr.Column():
|
| 50 |
-
gr.Markdown("### All Data")
|
| 51 |
-
fig2 = px.histogram(data, x="Year", color="Environmental Transparency")
|
| 52 |
-
fig2.update_layout(xaxis_type='category')
|
| 53 |
-
plt2 = gr.Plot(fig2)
|
| 54 |
org_choice.select(generate_figure, inputs=[org_choice], outputs=[plt])
|
| 55 |
|
| 56 |
demo.launch()
|
|
|
|
| 34 |
to the first quarter of 2025 in our analysis. We examined the level of environmental impact transparency for each model based on key information \
|
| 35 |
from the Epoch AI dataset (e.g., model accessibility, training compute estimation method) as well as from individual model release content \
|
| 36 |
(e.g., paper, model card, announcement).')
|
| 37 |
+
with gr.Row():
|
| 38 |
+
with gr.Column():
|
| 39 |
+
gr.Markdown("### All Data")
|
| 40 |
+
fig2 = px.histogram(data, x="Year", color="Environmental Transparency")
|
| 41 |
+
fig2.update_layout(xaxis_type='category')
|
| 42 |
+
plt2 = gr.Plot(fig2)
|
| 43 |
with gr.Row():
|
| 44 |
with gr.Column(scale=1):
|
| 45 |
org_choice= gr.Dropdown(organizations, value="Alphabet", label="Organizations", info="Pick an organization to explore their environmental disclosures", interactive=True)
|
|
|
|
| 51 |
gr.Markdown("### Data by Organization")
|
| 52 |
fig = generate_figure(org_choice)
|
| 53 |
plt = gr.Plot(fig)
|
| 54 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
org_choice.select(generate_figure, inputs=[org_choice], outputs=[plt])
|
| 56 |
|
| 57 |
demo.launch()
|