adding org dropdown list
Browse files
app.py
CHANGED
@@ -5,12 +5,27 @@ import plotly.express as px
|
|
5 |
data = pd.read_csv('data/env_disclosure_data.csv')
|
6 |
data = data.drop('Unnamed: 0', axis=1)
|
7 |
data['Environmental Transparency'] = data['Environmental Transparency'].fillna('None')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
fig = px.histogram(data, x="Year", color="Environmental Transparency")
|
9 |
|
10 |
with gr.Blocks() as demo:
|
11 |
gr.Markdown("# Environmental Transparency Explorer Tool")
|
12 |
gr.Markdown("## Explore the data from 'Misinformation by Omission: The Need for More Environmental Transparency in AI'")
|
13 |
with gr.Row():
|
14 |
-
gr.
|
|
|
|
|
|
|
15 |
|
16 |
demo.launch()
|
|
|
5 |
data = pd.read_csv('data/env_disclosure_data.csv')
|
6 |
data = data.drop('Unnamed: 0', axis=1)
|
7 |
data['Environmental Transparency'] = data['Environmental Transparency'].fillna('None')
|
8 |
+
data.Organization = data.Organization.replace('University of Montreal / Université de Montréal', 'University of Montreal')
|
9 |
+
data.Organization = data.Organization.replace('University of Washington,Allen Institute for AI', 'Allen Institute for AI')
|
10 |
+
data.Organization = data.Organization.replace('Allen Institute for AI,University of Washington', 'Allen Institute for AI')
|
11 |
+
data.Organization = data.Organization.replace(['Google', 'DeepMind', 'Google DeepMind','Google Brain','Google Research'], 'Alphabet')
|
12 |
+
data.Organization = data.Organization.replace(['Meta AI','Facebook AI Research','Facebook AI', 'Facebook'], 'Meta')
|
13 |
+
data.Organization = data.Organization.replace(['Microsoft','Microsoft Research'], 'Microsoft')
|
14 |
+
|
15 |
+
organizations=['Alphabet', 'OpenAI', 'Alibaba', 'Stanford University', 'University of Toronto','University of Toronto', 'Microsoft', 'NVIDIA',
|
16 |
+
'Carnegie Mellon University (CMU)', 'University of Oxford','University of California (UC) Berkeley','Baidu','Anthropic',
|
17 |
+
'Salesforce Research', 'Amazon', 'University of Montreal', 'Apple', 'Mistral AI', 'DeepSeek', 'Allen Institute for AI']
|
18 |
+
|
19 |
+
|
20 |
fig = px.histogram(data, x="Year", color="Environmental Transparency")
|
21 |
|
22 |
with gr.Blocks() as demo:
|
23 |
gr.Markdown("# Environmental Transparency Explorer Tool")
|
24 |
gr.Markdown("## Explore the data from 'Misinformation by Omission: The Need for More Environmental Transparency in AI'")
|
25 |
with gr.Row():
|
26 |
+
with gr.Column(scale=1):
|
27 |
+
gr.Dropdown(organizations, label="Organizations", info="Pick an organization to explore their environmental disclosures")
|
28 |
+
with gr.Column(scale=4):
|
29 |
+
gr.Plot(fig)
|
30 |
|
31 |
demo.launch()
|