naohiro701 commited on
Commit
6e11591
·
verified ·
1 Parent(s): f32b0f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, fig_soc, fig_price, 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,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, height=800)
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")