YU-XI commited on
Commit
c7e98a3
1 Parent(s): a2e0857

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from langchain.chains.question_answering import load_qa_chain # Import load_qa_
10
 
11
 
12
  async def initialize(file_path, question):
13
- genai.configure(api_key=os.getenv("AIzaSyBcGzp4xqhpM3K3g7J_2xAr55Sy_rE0n1g"))
14
  model = genai.GenerativeModel('gemini-pro')
15
  model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3)
16
  prompt_template = """Answer the question as precise as possible using the provided context. If the answer is
 
10
 
11
 
12
  async def initialize(file_path, question):
13
+ genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
14
  model = genai.GenerativeModel('gemini-pro')
15
  model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3)
16
  prompt_template = """Answer the question as precise as possible using the provided context. If the answer is