Muhammad Qasim commited on
Commit
19c3f9c
·
1 Parent(s): f89d622

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def get_text_chunks(text):
36
  def get_vectorstore(text_chunks):
37
  # embeddings = OpenAIEmbeddings()
38
  print("HuggingFaceInstructEmbeddings")
39
- embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
40
  print("FAISS.from_texts")
41
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
42
  print("returning vectorstore")
 
36
  def get_vectorstore(text_chunks):
37
  # embeddings = OpenAIEmbeddings()
38
  print("HuggingFaceInstructEmbeddings")
39
+ embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl", model_kwargs={"weights_only": True})
40
  print("FAISS.from_texts")
41
  vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
42
  print("returning vectorstore")