Commit
·
234ed52
1
Parent(s):
2ca06ea
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,10 @@ openai.api_key = os.environ.get('API_KEY')
|
|
17 |
|
18 |
nlp = spacy.load("en_core_web_sm")
|
19 |
|
|
|
|
|
|
|
|
|
20 |
def text_to_sentences(text):
|
21 |
doc = nlp(text)
|
22 |
sentences = [ sentence.text for sentence in list(doc.sents) ]
|
|
|
17 |
|
18 |
nlp = spacy.load("en_core_web_sm")
|
19 |
|
20 |
+
# The following text inside one of this categories: Entertainment, Business, Politics
|
21 |
+
# This dull recreation of the animated film doesn’t strive for anything more than what was contained in the original version of this film and actually delivers less.
|
22 |
+
# Category: Entertainment
|
23 |
+
|
24 |
def text_to_sentences(text):
|
25 |
doc = nlp(text)
|
26 |
sentences = [ sentence.text for sentence in list(doc.sents) ]
|