Blaise-g commited on
Commit
c9cf03a
Β·
1 Parent(s): 6d3b7d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,7 +5,6 @@ from pathlib import Path
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,7 +125,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 = cl(raw_text, lower=False) #see if it works
130
  return text
131
 
132
 
 
5
  import gradio as gr
6
  import nltk
7
  from cleantext import clean
 
8
  from summarize import load_model_and_tokenizer, summarize_via_tokenbatches
9
  from utils import load_example_filenames, truncate_word_count
10
 
 
125
  # load the examples into a list
126
  with open(full_ex_path, "r", encoding="utf-8", errors="ignore") as f:
127
  raw_text = f.read()
128
+ text = cl(raw_text, extra_spaces=True, lowercase=False) #see if it works
129
  return text
130
 
131