Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,6 @@ from operator import itemgetter
|
|
8 |
import os
|
9 |
import json
|
10 |
import getpass
|
11 |
-
from dotenv import find_dotenv, load_dotenv
|
12 |
|
13 |
from langchain.vectorstores import Pinecone
|
14 |
from langchain.embeddings import OpenAIEmbeddings
|
@@ -21,9 +20,8 @@ from agents.results import results_agent
|
|
21 |
from reranker import reranker
|
22 |
from utils import build_filter
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
PINECONE_API = os.environ.get("PINECONE_API")
|
27 |
|
28 |
pinecone.init(
|
29 |
api_key= PINECONE_API,
|
|
|
8 |
import os
|
9 |
import json
|
10 |
import getpass
|
|
|
11 |
|
12 |
from langchain.vectorstores import Pinecone
|
13 |
from langchain.embeddings import OpenAIEmbeddings
|
|
|
20 |
from reranker import reranker
|
21 |
from utils import build_filter
|
22 |
|
23 |
+
OPENAI_API = st.secrets["OPENAI_API"]
|
24 |
+
PINECONE_API = st.secrets["PINECONE_API"]
|
|
|
25 |
|
26 |
pinecone.init(
|
27 |
api_key= PINECONE_API,
|