Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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):
|