Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,19 @@ st.markdown("""
|
|
| 27 |
|
| 28 |
/* --- 3. Sidebar Typography --- */
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
/* The Custom Question Headers */
|
| 31 |
.sidebar-question {
|
| 32 |
font-size: 1.4rem;
|
|
@@ -78,10 +91,10 @@ st.markdown("""
|
|
| 78 |
|
| 79 |
.metric-card {
|
| 80 |
background-color: #ffffff;
|
| 81 |
-
padding:
|
| 82 |
border-radius: 12px;
|
| 83 |
text-align: center;
|
| 84 |
-
margin-bottom:
|
| 85 |
border: 1px solid #e5e7eb;
|
| 86 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 87 |
}
|
|
@@ -118,7 +131,6 @@ 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 |
|
| 123 |
# 1. AI Power Demand
|
| 124 |
st.sidebar.markdown('<p class="sidebar-question">1. How much power will AI require in 2030? (GW)</p>', unsafe_allow_html=True)
|
|
@@ -135,7 +147,7 @@ with st.sidebar.expander("More on AI Demand Forecasts"):
|
|
| 135 |
st.sidebar.markdown('<div class="spacer"></div>', unsafe_allow_html=True)
|
| 136 |
|
| 137 |
# 2. Gas Share
|
| 138 |
-
st.sidebar.markdown('<p class="sidebar-question">2. What proportion of power will be supplied by natural gas?</p>', unsafe_allow_html=True)
|
| 139 |
gas_share = st.sidebar.slider(
|
| 140 |
"Gas Share",
|
| 141 |
min_value=0, max_value=100, value=90, step=5,
|
|
@@ -144,17 +156,17 @@ gas_share = st.sidebar.slider(
|
|
| 144 |
)
|
| 145 |
|
| 146 |
with st.sidebar.expander("More on Energy Mix"):
|
| 147 |
-
|
| 148 |
**Why Gas?**
|
| 149 |
-
The electric grid in major hubs like Texas is effectively "sold out," with wait times for connection approaching 5 years. To bypass this, AI labs are adopting "Bring Your Own Generation" (BYOG) strategies, primarily using natural gas which can be deployed in months rather than years. In fact, current projections suggest that **nearly a third of all new data center development will deploy behind-the-meter (BTM) gas generation** to circumvent these bottlenecks
|
| 150 |
|
| 151 |
-
* **Grid Dominance:** Natural gas is the backbone of the U.S. power system, accounting for approximately **43% of total utility-scale electricity generation** in 2023
|
| 152 |
-
* **The Flexibility Wildcard:** "Demand response" (or data center flexibility) could theoretically pull gigawatts "out of thin air" by matching AI training jobs to times when the grid has spare capacity
|
| 153 |
|
| 154 |
**What about Solar?**
|
| 155 |
-
While solar prices have dropped ~88% since 2009, it faces physical limits
|
| 156 |
-
* **Land Use:** 2 GW of solar requires a land area roughly the size of Manhattan (approx. 60 km²)
|
| 157 |
-
* **Uptime:** Solar requires massive battery storage for 24/7 reliability, adding complexity for off-grid "island" data centers that cannot draw on spare grid capacity at night
|
| 158 |
|
| 159 |
---
|
| 160 |
*Sources:*
|
|
|
|
| 27 |
|
| 28 |
/* --- 3. Sidebar Typography --- */
|
| 29 |
|
| 30 |
+
/* Target the text inside the sidebar's markdown container */
|
| 31 |
+
[data-testid="stSidebarContent"] .stMarkdown {
|
| 32 |
+
color: white !important;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
/* Optional: Target specific headers or paragraphs in the sidebar for clarity */
|
| 36 |
+
[data-testid="stSidebarContent"] p,
|
| 37 |
+
[data-testid="stSidebarContent"] h1,
|
| 38 |
+
[data-testid="stSidebarContent"] h2,
|
| 39 |
+
[data-testid="stSidebarContent"] h3 {
|
| 40 |
+
color: white !important;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
/* The Custom Question Headers */
|
| 44 |
.sidebar-question {
|
| 45 |
font-size: 1.4rem;
|
|
|
|
| 91 |
|
| 92 |
.metric-card {
|
| 93 |
background-color: #ffffff;
|
| 94 |
+
padding: 20px;
|
| 95 |
border-radius: 12px;
|
| 96 |
text-align: center;
|
| 97 |
+
margin-bottom: 15px;
|
| 98 |
border: 1px solid #e5e7eb;
|
| 99 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 100 |
}
|
|
|
|
| 131 |
**What will the US emissions of AI be in 2030?** Model the variables below, focused on the efficiency of Natural Gas deployment.
|
| 132 |
""")
|
| 133 |
st.sidebar.markdown('<div class="spacer"></div>', unsafe_allow_html=True)
|
|
|
|
| 134 |
|
| 135 |
# 1. AI Power Demand
|
| 136 |
st.sidebar.markdown('<p class="sidebar-question">1. How much power will AI require in 2030? (GW)</p>', unsafe_allow_html=True)
|
|
|
|
| 147 |
st.sidebar.markdown('<div class="spacer"></div>', unsafe_allow_html=True)
|
| 148 |
|
| 149 |
# 2. Gas Share
|
| 150 |
+
st.sidebar.markdown('<p class="sidebar-question">2. What proportion of this power will be supplied by natural gas?</p>', unsafe_allow_html=True)
|
| 151 |
gas_share = st.sidebar.slider(
|
| 152 |
"Gas Share",
|
| 153 |
min_value=0, max_value=100, value=90, step=5,
|
|
|
|
| 156 |
)
|
| 157 |
|
| 158 |
with st.sidebar.expander("More on Energy Mix"):
|
| 159 |
+
st.markdown("""
|
| 160 |
**Why Gas?**
|
| 161 |
+
The electric grid in major hubs like Texas is effectively "sold out," with wait times for connection approaching 5 years. To bypass this, AI labs are adopting "Bring Your Own Generation" (BYOG) strategies, primarily using natural gas which can be deployed in months rather than years. In fact, current projections suggest that **nearly a third of all new data center development will deploy behind-the-meter (BTM) gas generation** to circumvent these bottlenecks.$^{1,2}$
|
| 162 |
|
| 163 |
+
* **Grid Dominance:** Natural gas is the backbone of the U.S. power system, accounting for approximately **43% of total utility-scale electricity generation** in 2023.$^{3,4}$
|
| 164 |
+
* **The Flexibility Wildcard:** "Demand response" (or data center flexibility) could theoretically pull gigawatts "out of thin air" by matching AI training jobs to times when the grid has spare capacity.$^{5}$ However, many experts remain skeptical of the true magnitude of this solution, as large-scale implementation faces significant technical hurdles and pushback from major grid operators like PJM.$^{5,6}$
|
| 165 |
|
| 166 |
**What about Solar?**
|
| 167 |
+
While solar prices have dropped ~88% since 2009, it faces physical limits:$^{5}$
|
| 168 |
+
* **Land Use:** 2 GW of solar requires a land area roughly the size of Manhattan (approx. 60 km²).$^{5}$
|
| 169 |
+
* **Uptime:** Solar requires massive battery storage for 24/7 reliability, adding complexity for off-grid "island" data centers that cannot draw on spare grid capacity at night.$^{5}$
|
| 170 |
|
| 171 |
---
|
| 172 |
*Sources:*
|