Lhumpal commited on
Commit
9ae1a5e
·
verified ·
1 Parent(s): 7f0c7e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,8 +27,8 @@ def chunk_text(text, chunk_size=50, chunk_overlap=10):
27
  return chunks
28
 
29
  # Function to build FAISS index
 
30
  def build_faiss_vectorstore(chunks):
31
- embedding_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
32
  vectorstore = FAISS.from_texts(chunks, embedding_model)
33
  return vectorstore
34
 
 
27
  return chunks
28
 
29
  # Function to build FAISS index
30
+ embedding_model = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
31
  def build_faiss_vectorstore(chunks):
 
32
  vectorstore = FAISS.from_texts(chunks, embedding_model)
33
  return vectorstore
34