cas106 commited on
Commit
1fb75bd
1 Parent(s): 668931b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,6 +7,7 @@ import spacy
7
  from spacy import displacy
8
  from collections import Counter
9
  import en_core_web_sm
 
10
 
11
  from transformers import pipeline
12
  summarization = pipeline("summarization", model = "facebook/bart-large-cnn")
@@ -19,7 +20,6 @@ def story(txt):
19
 
20
  #Find all the names that appear in the story and define the function for finding the most appeared name
21
 
22
- nlp = en_core_web_sm.load()
23
  doc = nlp(txt)
24
  labellist = []
25
  namelist = []
 
7
  from spacy import displacy
8
  from collections import Counter
9
  import en_core_web_sm
10
+ nlp = en_core_web_sm.load()
11
 
12
  from transformers import pipeline
13
  summarization = pipeline("summarization", model = "facebook/bart-large-cnn")
 
20
 
21
  #Find all the names that appear in the story and define the function for finding the most appeared name
22
 
 
23
  doc = nlp(txt)
24
  labellist = []
25
  namelist = []