Aishu-7 commited on
Commit
5340531
·
verified ·
1 Parent(s): 19978fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,7 +25,8 @@ def preprocess_text(text):
25
  #print (len(cleaned_chunks))
26
 
27
  return cleaned_chunks
28
-
 
29
  model = SentenceTransformer('all-MiniLM-L6-v2')
30
 
31
  def create_embeddings(text_chunks):
 
25
  #print (len(cleaned_chunks))
26
 
27
  return cleaned_chunks
28
+
29
+ cleaned_chunks = preprocess_text(knowledge_base)
30
  model = SentenceTransformer('all-MiniLM-L6-v2')
31
 
32
  def create_embeddings(text_chunks):