bgamazay commited on
Commit
3dda7b6
·
verified ·
1 Parent(s): e4b0981

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -95,9 +95,9 @@ st.markdown("""
95
  }
96
 
97
  .sub-text {
98
- font-size: 1.25rem;
99
  font-weight: 500;
100
- color: #6b7280;
101
  }
102
 
103
  /* Custom Spacer for Sidebar */
@@ -113,23 +113,21 @@ st.markdown("""
113
  # --- Title ---
114
  #st.title("🌍 The Climate Cost of the AI Race ⛽️")
115
 
116
- #st.divider()
117
-
118
  # --- Sidebar Inputs ---
119
  st.sidebar.markdown("""
120
  **What will the US emissions of AI be in 2030?** Model the variables below, focused on the efficiency of Natural Gas deployment.
121
  """)
 
122
  st.sidebar.header("⚙️ Scenario Settings")
123
- st.sidebar.markdown("---")
124
-
125
 
126
  # 1. AI Power Demand
127
- st.sidebar.markdown('<p class="sidebar-question">1. How much power will AI require in 2030?</p>', unsafe_allow_html=True)
128
  ai_demand_gw = st.sidebar.number_input(
129
  "Demand (GW)",
130
  value=100,
131
  step=10,
132
- format="%d", # Fixed: Removed " GW" suffix which caused the crash
133
  label_visibility="collapsed"
134
  )
135
  with st.sidebar.expander("More on AI Demand Forecasts"):
 
95
  }
96
 
97
  .sub-text {
98
+ font-size: 1.6rem;
99
  font-weight: 500;
100
+ color: #36454F;
101
  }
102
 
103
  /* Custom Spacer for Sidebar */
 
113
  # --- Title ---
114
  #st.title("🌍 The Climate Cost of the AI Race ⛽️")
115
 
 
 
116
  # --- Sidebar Inputs ---
117
  st.sidebar.markdown("""
118
  **What will the US emissions of AI be in 2030?** Model the variables below, focused on the efficiency of Natural Gas deployment.
119
  """)
120
+ st.sidebar.markdown('<div class="spacer"></div>', unsafe_allow_html=True)
121
  st.sidebar.header("⚙️ Scenario Settings")
122
+ st.sidebar.markdown('<div class="spacer"></div>', unsafe_allow_html=True)
 
123
 
124
  # 1. AI Power Demand
125
+ st.sidebar.markdown('<p class="sidebar-question">1. How much power will AI require in 2030? (GW)</p>', unsafe_allow_html=True)
126
  ai_demand_gw = st.sidebar.number_input(
127
  "Demand (GW)",
128
  value=100,
129
  step=10,
130
+ format="%d",
131
  label_visibility="collapsed"
132
  )
133
  with st.sidebar.expander("More on AI Demand Forecasts"):