Mr-TD commited on
Commit
91fbeea
1 Parent(s): c7d6cd8

Update QnA.py

Browse files
Files changed (1) hide show
  1. QnA.py +4 -2
QnA.py CHANGED
@@ -2,8 +2,10 @@ from langchain.chains import RetrievalQA
2
  #from Api_Key import google_plam
3
  from langchain.llms import GooglePalm
4
 
5
- import os
6
- google_plam = os.environ["GOOGLE_API_KEY"]
 
 
7
 
8
 
9
  def Q_A(vectorstore,question):
 
2
  #from Api_Key import google_plam
3
  from langchain.llms import GooglePalm
4
 
5
+ from dotenv import load_dotenv
6
+ load_dotenv()
7
+ os.getenv("GOOGLE_API_KEY")
8
+ google_plam = os.getenv("GOOGLE_API_KEY")
9
 
10
 
11
  def Q_A(vectorstore,question):