Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ def extract_text_from_file(file):
|
|
| 71 |
|
| 72 |
return file_text
|
| 73 |
|
| 74 |
-
def preprocess_plain_text(text,window_size=
|
| 75 |
|
| 76 |
text = text.encode("ascii", "ignore").decode() # unicode
|
| 77 |
text = re.sub(r"https*\S+", " ", text) # url
|
|
|
|
| 71 |
|
| 72 |
return file_text
|
| 73 |
|
| 74 |
+
def preprocess_plain_text(text,window_size=3):
|
| 75 |
|
| 76 |
text = text.encode("ascii", "ignore").decode() # unicode
|
| 77 |
text = re.sub(r"https*\S+", " ", text) # url
|