Moha782 commited on
Commit
8a68cb3
·
verified ·
1 Parent(s): 68c3755

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ embeddings = SentenceTransformer("sentence-transformers/all-mpnet-base-v2")
20
  texts = [doc.page_content for doc in texts] # Get the text content from the documents
21
  embeddings = embeddings.encode(texts) # Get the embeddings for the texts
22
 
23
- vector_store = FAISS.from_texts(texts, embeddings)
24
 
25
  # Initialize the HuggingFaceHub LLM
26
  llm = HuggingFaceHub(repo_id="HuggingFaceH4/zephyr-7b-beta", model_kwargs={"temperature": None, "top_p": None})
 
20
  texts = [doc.page_content for doc in texts] # Get the text content from the documents
21
  embeddings = embeddings.encode(texts) # Get the embeddings for the texts
22
 
23
+ vector_store = FAISS.from_documents(texts, embeddings)
24
 
25
  # Initialize the HuggingFaceHub LLM
26
  llm = HuggingFaceHub(repo_id="HuggingFaceH4/zephyr-7b-beta", model_kwargs={"temperature": None, "top_p": None})