MLDeveloper commited on
Commit
fdd0b88
·
verified ·
1 Parent(s): d36a0d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -6,6 +6,12 @@ from io import StringIO
6
  import csv
7
  from dotenv import load_dotenv
8
 
 
 
 
 
 
 
9
  # Load environment variables from .env file
10
  load_dotenv()
11
 
@@ -82,8 +88,8 @@ if submitted and location and roof_size > 0 and electricity_bill >= 0:
82
  # Display only the required points: system size, cost, savings, and payback period
83
  for point in estimated_data:
84
  if "solar system size" in point.lower() or "total system cost" in point.lower() or "monthly savings" in point.lower() or "payback period" in point.lower():
85
- st.write(f"{point.strip()}")
86
  else:
87
  st.error("Sorry, the location entered does not match any available data.")
88
  else:
89
- st.warning("Please fill out all fields to see your solar project estimate.")
 
6
  import csv
7
  from dotenv import load_dotenv
8
 
9
+ import streamlit as st
10
+ import pandas as pd
11
+ import google.generativeai as genai
12
+ import os
13
+ from dotenv import load_dotenv
14
+
15
  # Load environment variables from .env file
16
  load_dotenv()
17
 
 
88
  # Display only the required points: system size, cost, savings, and payback period
89
  for point in estimated_data:
90
  if "solar system size" in point.lower() or "total system cost" in point.lower() or "monthly savings" in point.lower() or "payback period" in point.lower():
91
+ st.write(point.strip())
92
  else:
93
  st.error("Sorry, the location entered does not match any available data.")
94
  else:
95
+ st.warning("Please fill out all fields to see your solar project estimate.")