Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,9 +76,9 @@ st.markdown("""
|
|
| 76 |
""", unsafe_allow_html=True)
|
| 77 |
|
| 78 |
# --- Title ---
|
| 79 |
-
st.title("🌍 The Climate Cost of the AI Race ⛽️")
|
| 80 |
|
| 81 |
-
st.divider()
|
| 82 |
|
| 83 |
# --- Sidebar Inputs ---
|
| 84 |
st.sidebar.markdown("""
|
|
@@ -217,29 +217,33 @@ fig1.add_trace(go.Bar(
|
|
| 217 |
))
|
| 218 |
|
| 219 |
fig1.update_layout(
|
| 220 |
-
height=650,
|
| 221 |
-
font=dict(size=18), #
|
| 222 |
-
title=
|
| 223 |
-
text
|
| 224 |
-
font
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
barmode='stack',
|
| 235 |
-
legend=
|
| 236 |
-
orientation
|
| 237 |
-
y
|
| 238 |
-
x
|
| 239 |
-
xanchor
|
| 240 |
-
font
|
| 241 |
-
|
| 242 |
-
margin=dict(l=50, r=50, t=
|
| 243 |
hovermode="x unified"
|
| 244 |
)
|
| 245 |
|
|
|
|
| 76 |
""", unsafe_allow_html=True)
|
| 77 |
|
| 78 |
# --- Title ---
|
| 79 |
+
#st.title("🌍 The Climate Cost of the AI Race ⛽️")
|
| 80 |
|
| 81 |
+
#st.divider()
|
| 82 |
|
| 83 |
# --- Sidebar Inputs ---
|
| 84 |
st.sidebar.markdown("""
|
|
|
|
| 217 |
))
|
| 218 |
|
| 219 |
fig1.update_layout(
|
| 220 |
+
height=650,
|
| 221 |
+
font=dict(size=18), # Scales all text globally
|
| 222 |
+
title={
|
| 223 |
+
'text': "Can we hit the 50% reduction target?",
|
| 224 |
+
'font': {'size': 24},
|
| 225 |
+
'x': 0.5,
|
| 226 |
+
'xanchor': 'center'
|
| 227 |
+
},
|
| 228 |
+
yaxis={
|
| 229 |
+
'title': {
|
| 230 |
+
'text': "Emissions (Million tCO2e)",
|
| 231 |
+
'font': {'size': 20}
|
| 232 |
+
},
|
| 233 |
+
'tickfont': {'size': 16}
|
| 234 |
+
},
|
| 235 |
+
xaxis={
|
| 236 |
+
'tickfont': {'size': 16}
|
| 237 |
+
},
|
| 238 |
barmode='stack',
|
| 239 |
+
legend={
|
| 240 |
+
'orientation': "h",
|
| 241 |
+
'y': -0.15,
|
| 242 |
+
'x': 0.5,
|
| 243 |
+
'xanchor': 'center',
|
| 244 |
+
'font': {'size': 18}
|
| 245 |
+
},
|
| 246 |
+
margin=dict(l=50, r=50, t=100, b=100),
|
| 247 |
hovermode="x unified"
|
| 248 |
)
|
| 249 |
|