Spaces:
Running
Running
Update QnA.py
Browse files
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
|
6 |
-
|
|
|
|
|
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):
|