Gregniuki commited on
Commit
47557e6
1 Parent(s): 9f23b12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -30,8 +30,11 @@ from piper_phonemize import phonemize_codepoints, phonemize_espeak, tashkeel_run
30
 
31
  #_LOGGER = logging.getLogger("piper_train.infer_onnx")
32
  import os
33
- if not os.path.exists("/content/piper/src/python/lng"):
34
- !cp -r "/content/piper/notebooks/lng" /content/piper/src/python/lng
 
 
 
35
  import sys
36
  sys.path.append('/content/piper/notebooks')
37
  import configparser
 
30
 
31
  #_LOGGER = logging.getLogger("piper_train.infer_onnx")
32
  import os
33
+ if not os.path.exists("/content/piper/src/python/lng"):
34
+ import subprocess
35
+ command = "cp -r /content/piper/notebooks/lng /content/piper/src/python/lng"
36
+ subprocess.run(command, shell=True)
37
+
38
  import sys
39
  sys.path.append('/content/piper/notebooks')
40
  import configparser