bgamazay commited on
Commit
c9c3a3c
·
verified ·
1 Parent(s): 89e980a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -24
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, # Increased height
221
- font=dict(size=18), # Global font scale
222
- title=dict(
223
- text="Can we hit the 50% reduction target?",
224
- font=dict(size=24) # Explicit title size
225
- ),
226
- yaxis=dict(
227
- title="Emissions (Million tCO2e)",
228
- titlefont=dict(size=20),
229
- tickfont=dict(size=16)
230
- ),
231
- xaxis=dict(
232
- tickfont=dict(size=16)
233
- ),
 
 
 
 
234
  barmode='stack',
235
- legend=dict(
236
- orientation="h",
237
- y=-0.2,
238
- x=0.5,
239
- xanchor='center',
240
- font=dict(size=18) # Larger legend text
241
- ),
242
- margin=dict(l=50, r=50, t=80, b=50),
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