subhannadeem1 commited on
Commit
7e47862
·
1 Parent(s): 4a3f394

Update page3.py

Browse files
Files changed (1) hide show
  1. page3.py +4 -1
page3.py CHANGED
@@ -3,8 +3,11 @@ import streamlit as st
3
  from langchain_google_genai import ChatGoogleGenerativeAI
4
 
5
  import time
 
 
6
  def details():
7
- apiKey = "AIzaSyAXkkcrrUBjPEgj93tZ9azy7zcS1wI1jUA"
 
8
  llm = ChatGoogleGenerativeAI(model="gemini-pro", google_api_key=apiKey)
9
  st.header("Introducing Gemini")
10
  with st.chat_message("assistant"):
 
3
  from langchain_google_genai import ChatGoogleGenerativeAI
4
 
5
  import time
6
+ import os
7
+
8
  def details():
9
+ api = os.environ.get("api_key")
10
+ apiKey = api
11
  llm = ChatGoogleGenerativeAI(model="gemini-pro", google_api_key=apiKey)
12
  st.header("Introducing Gemini")
13
  with st.chat_message("assistant"):