Update app.py
Browse files
app.py
CHANGED
|
@@ -5,18 +5,12 @@ import os
|
|
| 5 |
from io import StringIO
|
| 6 |
import csv
|
| 7 |
|
| 8 |
-
import streamlit as st
|
| 9 |
-
import pandas as pd
|
| 10 |
-
import google.generativeai as genai
|
| 11 |
-
import os
|
| 12 |
-
from io import StringIO
|
| 13 |
-
import csv
|
| 14 |
|
| 15 |
# Set page configuration first
|
| 16 |
st.set_page_config(page_title="AI-based Solar Project Estimation Tool", layout="centered")
|
| 17 |
|
| 18 |
# Get API key from environment variable
|
| 19 |
-
api_key = os.getenv("
|
| 20 |
if not api_key:
|
| 21 |
st.error("Google API Key not set. Please set the GOOGLE_API_KEY environment variable.")
|
| 22 |
else:
|
|
|
|
| 5 |
from io import StringIO
|
| 6 |
import csv
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
# Set page configuration first
|
| 10 |
st.set_page_config(page_title="AI-based Solar Project Estimation Tool", layout="centered")
|
| 11 |
|
| 12 |
# Get API key from environment variable
|
| 13 |
+
api_key = os.getenv("AIzaSyCVRGVxIe1vESoAgykgHWOej-jZxiU-RKE")
|
| 14 |
if not api_key:
|
| 15 |
st.error("Google API Key not set. Please set the GOOGLE_API_KEY environment variable.")
|
| 16 |
else:
|