Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -481,7 +481,7 @@ from langchain_core.messages import HumanMessage
|
|
481 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
482 |
|
483 |
# β
Set up Google API Key (Avoid hardcoding in production)
|
484 |
-
os.environ["GOOGLE_API_KEY"] =
|
485 |
|
486 |
# β
Initialize the Gemini model
|
487 |
gemini_model = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
|
|
|
481 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
482 |
|
483 |
# β
Set up Google API Key (Avoid hardcoding in production)
|
484 |
+
os.environ["GOOGLE_API_KEY"] = os.getenv("GOOGLE_API_KEY") # Replace with your actual API Key
|
485 |
|
486 |
# β
Initialize the Gemini model
|
487 |
gemini_model = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
|