Blaise-g commited on
Commit
7a4b24e
Β·
1 Parent(s): 58eb040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = clean(raw_text, lower=False)
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