Prathamesh1420 commited on
Commit
dd4f83b
Β·
verified Β·
1 Parent(s): e7172ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"] = st.secrets["GOOGLE_API_KEY"] # Replace with your actual 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")