Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ except Exception as e:
|
|
42 |
|
43 |
def load_and_preprocess_text(filename):
|
44 |
"""
|
45 |
-
|
46 |
"""
|
47 |
try:
|
48 |
with open(filename, 'r', encoding='utf-8') as file:
|
|
|
42 |
|
43 |
def load_and_preprocess_text(filename):
|
44 |
"""
|
45 |
+
Load and preprocess text from a file, removing empty lines and stripping whitespace.
|
46 |
"""
|
47 |
try:
|
48 |
with open(filename, 'r', encoding='utf-8') as file:
|