Atif20024 commited on
Commit
bc58e4f
·
verified ·
1 Parent(s): adb646f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ if len(main_text) > 0:
57
  )
58
  texts = text_splitter.create_documents([main_text])
59
 
60
- embeddings = OpenAIEmbeddings(api_key=secrets['OPENAI_API_KEY'])
61
  # store in vector db
62
  db = FAISS.from_documents(texts, embeddings)
63
 
 
57
  )
58
  texts = text_splitter.create_documents([main_text])
59
 
60
+ embeddings = OpenAIEmbeddings(api_key=api_key)
61
  # store in vector db
62
  db = FAISS.from_documents(texts, embeddings)
63