Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,11 @@ load_dotenv()
|
|
| 10 |
# # Retrieve the API key securely from Streamlit secrets
|
| 11 |
# GOOGLE_API_KEY = st.secrets["gemini"]["GOOGLE_API_KEY"]
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
# Configure Gemini API with the API Key from secrets
|
| 14 |
-
genai.configure(api_key=API_KEY)
|
| 15 |
|
| 16 |
# Function to load Gemini model and generate SQL query
|
| 17 |
def get_gemini_response(question, prompt):
|
|
|
|
| 10 |
# # Retrieve the API key securely from Streamlit secrets
|
| 11 |
# GOOGLE_API_KEY = st.secrets["gemini"]["GOOGLE_API_KEY"]
|
| 12 |
|
| 13 |
+
# Configure Gemini API
|
| 14 |
+
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 15 |
+
|
| 16 |
# Configure Gemini API with the API Key from secrets
|
| 17 |
+
# genai.configure(api_key=API_KEY)
|
| 18 |
|
| 19 |
# Function to load Gemini model and generate SQL query
|
| 20 |
def get_gemini_response(question, prompt):
|