Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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
|