chinhon commited on
Commit
c70d408
1 Parent(s): b3118cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,6 +13,7 @@ def clean_text(text):
13
  text = re.sub(r"\n", " ", text)
14
  text = re.sub(r"\n\n", " ", text)
15
  text = re.sub(r"\t", " ", text)
 
16
  text = text.strip(" ")
17
  text = re.sub(
18
  " +", " ", text
@@ -56,7 +57,7 @@ summary1 = gr.Interface(
56
 
57
 
58
  modchoice_2 = (
59
- "chinhon/pegasus-newsroom-summarizer_02"
60
  )
61
 
62
  def summarizer2(text):
 
13
  text = re.sub(r"\n", " ", text)
14
  text = re.sub(r"\n\n", " ", text)
15
  text = re.sub(r"\t", " ", text)
16
+ text = re.sub(r"ADVERTISEMENT", " ", text)
17
  text = text.strip(" ")
18
  text = re.sub(
19
  " +", " ", text
 
57
 
58
 
59
  modchoice_2 = (
60
+ "chinhon/pegasus-newsroom-summarizer_30216"
61
  )
62
 
63
  def summarizer2(text):