talha515 commited on
Commit
3ece1a2
·
verified ·
1 Parent(s): 9db8b94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def chunk_text(text, chunk_size=500, chunk_overlap=50):
26
  return text_splitter.split_text(text)
27
 
28
  def create_embeddings_and_store(chunks):
29
- embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/al-MiniLM-L6-v2")
30
  vector_db = FAISS.from_text(chunks, embedding= embeddings)
31
  return vector_db
32
 
 
26
  return text_splitter.split_text(text)
27
 
28
  def create_embeddings_and_store(chunks):
29
+ embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
30
  vector_db = FAISS.from_text(chunks, embedding= embeddings)
31
  return vector_db
32