Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ from piper_phonemize import phonemize_codepoints, phonemize_espeak, tashkeel_run
|
|
| 30 |
|
| 31 |
#_LOGGER = logging.getLogger("piper_train.infer_onnx")
|
| 32 |
import os
|
| 33 |
-
|
| 34 |
import subprocess
|
| 35 |
command = "cp -r /content/piper/notebooks/lng /content/piper/src/python/lng"
|
| 36 |
subprocess.run(command, shell=True)
|
|
|
|
| 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)
|