MLDeveloper commited on
Commit
54c70ee
·
verified ·
1 Parent(s): b003a37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def build_prompt(location, roof_size, electricity_bill, ghi, solar_cost_per_kw):
63
  if submitted and location and roof_size > 0 and electricity_bill >= 0:
64
  state_data = df[df['State'].str.contains(location, case=False)].iloc[0]
65
 
66
- if state_data is not None:
67
  ghi = state_data['Avg_GHI (kWh/m²/day)']
68
  solar_cost_per_kw = state_data['Solar_Cost_per_kW (₹)']
69
 
 
63
  if submitted and location and roof_size > 0 and electricity_bill >= 0:
64
  state_data = df[df['State'].str.contains(location, case=False)].iloc[0]
65
 
66
+ if state_data is not None:
67
  ghi = state_data['Avg_GHI (kWh/m²/day)']
68
  solar_cost_per_kw = state_data['Solar_Cost_per_kW (₹)']
69