Jay-Rajput commited on
Commit
be272f0
·
1 Parent(s): 836ba26

Add application file

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -26,13 +26,12 @@ def greet_json():
26
 
27
  @app.on_event("startup")
28
  def startup():
29
- # ensure NLTK resources and spacy model are available at runtime
30
  download_nltk_resources()
31
  try:
32
  spacy.load("en_core_web_sm")
33
  except OSError:
34
- import spacy.cli
35
  spacy.cli.download("en_core_web_sm")
 
36
  global humanizer
37
  humanizer = TextHumanizer()
38
 
 
26
 
27
  @app.on_event("startup")
28
  def startup():
 
29
  download_nltk_resources()
30
  try:
31
  spacy.load("en_core_web_sm")
32
  except OSError:
 
33
  spacy.cli.download("en_core_web_sm")
34
+
35
  global humanizer
36
  humanizer = TextHumanizer()
37