sasha HF Staff commited on
Commit
b6a7ed3
·
verified ·
1 Parent(s): 65e80f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -39,10 +39,13 @@ with gr.Blocks() as demo:
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)
46
  gr.Markdown('The 3 transparency categories are:')
47
  gr.Markdown('**Direct Disclosure**: Developers explicitly reported energy or GHG emissions, e.g., using hardware TDP, country average carbon intensity or measurements.')
48
  gr.Markdown('**Indirect Disclosure**: Developers provided training compute data or released their model weights, allowing external estimates of training or inference impacts.')
 
39
  gr.Markdown("### All Data")
40
  fig2 = px.histogram(data, x="Year", color="Environmental Transparency")
41
  fig2.update_layout(xaxis_type='category')
42
+ fig2.update_xaxes(categoryorder="total ascending")
43
+ #fig.update_xaxes(categoryorder='array', categoryarray= ['2010,'2011','2012','2013','2014','2015','2016','2017','2018','2019','2020','2021','2022','2023','2024','2025'])
44
+
45
  plt2 = gr.Plot(fig2)
46
  with gr.Row():
47
  with gr.Column(scale=1):
48
+ org_choice= gr.Dropdown(organizations, value="", label="Organizations", info="Pick an organization to explore their environmental disclosures", interactive=True)
49
  gr.Markdown('The 3 transparency categories are:')
50
  gr.Markdown('**Direct Disclosure**: Developers explicitly reported energy or GHG emissions, e.g., using hardware TDP, country average carbon intensity or measurements.')
51
  gr.Markdown('**Indirect Disclosure**: Developers provided training compute data or released their model weights, allowing external estimates of training or inference impacts.')