Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ with open("essay_writing.txt", "r", encoding="utf-8") as file:
|
|
| 18 |
# split the text into chunks
|
| 19 |
cleaned_text = essay_writing.strip()
|
| 20 |
chunks = cleaned_text.split("\n")
|
| 21 |
-
cleaned_chunks = [chunk.strip() for chunk in chunks if
|
| 22 |
|
| 23 |
# load an embedding model
|
| 24 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
|
|
| 18 |
# split the text into chunks
|
| 19 |
cleaned_text = essay_writing.strip()
|
| 20 |
chunks = cleaned_text.split("\n")
|
| 21 |
+
cleaned_chunks = [chunk.strip() for chunk in chunks if chunk.strip()]
|
| 22 |
|
| 23 |
# load an embedding model
|
| 24 |
model = SentenceTransformer('all-MiniLM-L6-v2')
|