datacipen commited on
Commit
ab4049b
1 Parent(s): 3696794

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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['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()
 
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()