drewThomasson commited on
Commit
a53b35a
1 Parent(s): 4a7d9b6

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
  global gradio_input_file # Use the global variable to store the ebook file path
11
 
12
  # Create input_files directory if it doesn't exist
 
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
13
 
14
  # Create input_files directory if it doesn't exist