drewThomasson
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ gradio_input_file = None
|
|
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
|
|
|
9 |
def process_ebook(ebook_file):
|
10 |
import nltk
|
11 |
nltk.download('averaged_perceptron_tagger_eng')
|
12 |
+
nltk.download('punkt_tab')
|
13 |
#download the en_core_web_sm spacy model
|
14 |
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"])
|
15 |
global gradio_input_file # Use the global variable to store the ebook file path
|