Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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')
|