Spaces:
Runtime error
Runtime error
taratrankennedy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ try:
|
|
22 |
except Exception as e:
|
23 |
print(f"Failed to load models: {e}")
|
24 |
|
25 |
-
def load_and_preprocess_text(
|
26 |
"""
|
27 |
Load and preprocess text from a file, removing empty lines and stripping whitespace.
|
28 |
"""
|
|
|
22 |
except Exception as e:
|
23 |
print(f"Failed to load models: {e}")
|
24 |
|
25 |
+
def load_and_preprocess_text(filename):
|
26 |
"""
|
27 |
Load and preprocess text from a file, removing empty lines and stripping whitespace.
|
28 |
"""
|