Update main.py
Browse files
main.py
CHANGED
@@ -53,11 +53,11 @@ def LLModel():
|
|
53 |
def VectorDatabase(categorie):
|
54 |
if categorie != "year":
|
55 |
os.environ['PINECONE_API_KEY'] = ""
|
56 |
-
os.environ['PINECONE_API_KEY'] = os.getenv
|
57 |
index_name = "all-venus"
|
58 |
else:
|
59 |
os.environ['PINECONE_API_KEY'] = ""
|
60 |
-
os.environ['PINECONE_API_KEY'] = os.getenv
|
61 |
index_name = "all-jdlp"
|
62 |
|
63 |
embeddings = HuggingFaceEmbeddings()
|
|
|
53 |
def VectorDatabase(categorie):
|
54 |
if categorie != "year":
|
55 |
os.environ['PINECONE_API_KEY'] = ""
|
56 |
+
os.environ['PINECONE_API_KEY'] = os.getenv('PINECONE_API_KEY')
|
57 |
index_name = "all-venus"
|
58 |
else:
|
59 |
os.environ['PINECONE_API_KEY'] = ""
|
60 |
+
os.environ['PINECONE_API_KEY'] = os.getenv('PINECONE_API_KEYJDLP')
|
61 |
index_name = "all-jdlp"
|
62 |
|
63 |
embeddings = HuggingFaceEmbeddings()
|