PebinAPJ commited on
Commit
1378504
·
verified ·
1 Parent(s): 38a268f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def get_text_chunks(text):
39
 
40
  def get_vectorstore(text_chunks):
41
  #embeddings = OpenAIEmbeddings()
42
- embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl",api_token=huggingface_token)
43
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
44
  return vectorstore
45
 
 
39
 
40
  def get_vectorstore(text_chunks):
41
  #embeddings = OpenAIEmbeddings()
42
+ embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
43
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
44
  return vectorstore
45