drewThomasson commited on
Commit
765c790
·
verified ·
1 Parent(s): a53b35a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -7,6 +7,8 @@ import subprocess
7
  gradio_input_file = None
8
 
9
  def process_ebook(ebook_file):
 
 
10
  #download the en_core_web_sm spacy model
11
  subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"])
12
  global gradio_input_file # Use the global variable to store the ebook file path
 
7
  gradio_input_file = None
8
 
9
  def process_ebook(ebook_file):
10
+ import nltk
11
+ nltk.download('averaged_perceptron_tagger_eng')
12
  #download the en_core_web_sm spacy model
13
  subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"])
14
  global gradio_input_file # Use the global variable to store the ebook file path