drewThomasson
commited on
Update app.py
Browse files
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
|