Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from pathlib import Path
|
|
5 |
import gradio as gr
|
6 |
import nltk
|
7 |
from cleantext import clean
|
8 |
-
|
9 |
from summarize import load_model_and_tokenizer, summarize_via_tokenbatches
|
10 |
from utils import load_example_filenames, truncate_word_count
|
11 |
|
@@ -126,7 +126,7 @@ def load_single_example_text(
|
|
126 |
# load the examples into a list
|
127 |
with open(full_ex_path, "r", encoding="utf-8", errors="ignore") as f:
|
128 |
raw_text = f.read()
|
129 |
-
text =
|
130 |
return text
|
131 |
|
132 |
|
|
|
5 |
import gradio as gr
|
6 |
import nltk
|
7 |
from cleantext import clean
|
8 |
+
import cleantext.clean as cl
|
9 |
from summarize import load_model_and_tokenizer, summarize_via_tokenbatches
|
10 |
from utils import load_example_filenames, truncate_word_count
|
11 |
|
|
|
126 |
# load the examples into a list
|
127 |
with open(full_ex_path, "r", encoding="utf-8", errors="ignore") as f:
|
128 |
raw_text = f.read()
|
129 |
+
text = cl(raw_text, lower=False) #see if it works
|
130 |
return text
|
131 |
|
132 |
|