Spaces:
Build error
Build error
Update pages/2_Non-Interactive Chat Bot.py
Browse files
pages/2_Non-Interactive Chat Bot.py
CHANGED
|
@@ -3,8 +3,8 @@ import os
|
|
| 3 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 4 |
from langchain_core.prompts import ChatPromptTemplate
|
| 5 |
|
| 6 |
-
# Set your
|
| 7 |
-
gemini_api_key = os.getenv("
|
| 8 |
|
| 9 |
# Initialize the Gemini API-powered chatbot model
|
| 10 |
model_gemini = ChatGoogleGenerativeAI(
|
|
|
|
| 3 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 4 |
from langchain_core.prompts import ChatPromptTemplate
|
| 5 |
|
| 6 |
+
# Set your Google API key from environment variables
|
| 7 |
+
gemini_api_key = os.getenv("GOOGLE_API_KEY")
|
| 8 |
|
| 9 |
# Initialize the Gemini API-powered chatbot model
|
| 10 |
model_gemini = ChatGoogleGenerativeAI(
|