naohiro701 commited on
Commit
6f04a37
·
verified ·
1 Parent(s): 173cac5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def get_json():
29
 
30
  # Function to optimize the energy system and create visualizations
31
  def optimize_energy_system(solar_cost, onshore_wind_cost, offshore_wind_cost, river_cost, battery_cost, yearly_demand, solar_range, wind_range, river_range, offshore_wind_range):
32
- data, error = get_json()
33
 
34
  for col in data.columns[1:]:
35
  data[col] = pd.to_numeric(data[col], errors='coerce')
 
29
 
30
  # Function to optimize the energy system and create visualizations
31
  def optimize_energy_system(solar_cost, onshore_wind_cost, offshore_wind_cost, river_cost, battery_cost, yearly_demand, solar_range, wind_range, river_range, offshore_wind_range):
32
+ data = get_json()
33
 
34
  for col in data.columns[1:]:
35
  data[col] = pd.to_numeric(data[col], errors='coerce')