Royir commited on
Commit
cfdb5a6
·
1 Parent(s): cbdada1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from syngen_diffusion_pipeline import SynGenDiffusionPipeline
6
  import subprocess
7
 
8
  def install_spacy_model(model_name):
9
- !python -m spacy download {model_name}
10
  install_spacy_model("en_core_web_trf")
11
 
12
  model_path = 'CompVis/stable-diffusion-v1-4'
 
6
  import subprocess
7
 
8
  def install_spacy_model(model_name):
9
+ subprocess.run(["python", "-m", "spacy", "download", model_name])
10
  install_spacy_model("en_core_web_trf")
11
 
12
  model_path = 'CompVis/stable-diffusion-v1-4'