Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,6 +20,9 @@ def preprocess_text(text):
|
|
| 20 |
return cleaned_chunks
|
| 21 |
cleaned_chunks = preprocess_text(info_text)
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
# Load the pre-trained embedding model that converts text to vectors
|
| 24 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
| 25 |
|
|
|
|
| 20 |
return cleaned_chunks
|
| 21 |
cleaned_chunks = preprocess_text(info_text)
|
| 22 |
|
| 23 |
+
print("Chunks:", cleaned_chunks)
|
| 24 |
+
print("Number of chunks:", len(cleaned_chunks))
|
| 25 |
+
|
| 26 |
# Load the pre-trained embedding model that converts text to vectors
|
| 27 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
| 28 |
|