Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,7 +208,7 @@ def optimize_energy_system(city_code, solar_cost, onshore_wind_cost, offshore_wi
|
|
| 208 |
)
|
| 209 |
|
| 210 |
# Return the figures and other outputs.
|
| 211 |
-
return fig_energy,
|
| 212 |
|
| 213 |
# Streamlit UI for the application
|
| 214 |
st.set_page_config(page_title='Renewable Energy System Optimization', layout='wide')
|
|
@@ -239,7 +239,7 @@ with st.sidebar:
|
|
| 239 |
if st.button('Calculate Optimal Energy Mix'):
|
| 240 |
fig, curtailment_values, price_per_hour = optimize_energy_system(city_code, solar_cost, onshore_wind_cost, offshore_wind_cost, river_cost, battery_cost, yearly_demand)
|
| 241 |
if fig:
|
| 242 |
-
st.plotly_chart(fig, use_container_width=True
|
| 243 |
|
| 244 |
# Additional analysis and visualizations
|
| 245 |
st.markdown("### Additional Analysis")
|
|
|
|
| 208 |
)
|
| 209 |
|
| 210 |
# Return the figures and other outputs.
|
| 211 |
+
return fig_energy, curtailment_values, price_per_hour
|
| 212 |
|
| 213 |
# Streamlit UI for the application
|
| 214 |
st.set_page_config(page_title='Renewable Energy System Optimization', layout='wide')
|
|
|
|
| 239 |
if st.button('Calculate Optimal Energy Mix'):
|
| 240 |
fig, curtailment_values, price_per_hour = optimize_energy_system(city_code, solar_cost, onshore_wind_cost, offshore_wind_cost, river_cost, battery_cost, yearly_demand)
|
| 241 |
if fig:
|
| 242 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 243 |
|
| 244 |
# Additional analysis and visualizations
|
| 245 |
st.markdown("### Additional Analysis")
|