Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ if not os.path.exists("/content/piper/src/python/lng"):
|
|
37 |
|
38 |
import sys
|
39 |
#sys.path.append('/content/piper/notebooks')
|
40 |
-
sys.path.append('
|
41 |
import configparser
|
42 |
|
43 |
class Translator:
|
@@ -78,8 +78,8 @@ def detect_onnx_models(path):
|
|
78 |
|
79 |
def main():
|
80 |
"""Main entry point"""
|
81 |
-
sys.path.append('
|
82 |
-
models_path = "
|
83 |
logging.basicConfig(level=logging.DEBUG)
|
84 |
providers = [
|
85 |
"CPUExecutionProvider"
|
|
|
37 |
|
38 |
import sys
|
39 |
#sys.path.append('/content/piper/notebooks')
|
40 |
+
sys.path.append('./content/piper/src/python')
|
41 |
import configparser
|
42 |
|
43 |
class Translator:
|
|
|
78 |
|
79 |
def main():
|
80 |
"""Main entry point"""
|
81 |
+
sys.path.append('./content/piper/src/python')
|
82 |
+
models_path = "./content/piper/src/python"
|
83 |
logging.basicConfig(level=logging.DEBUG)
|
84 |
providers = [
|
85 |
"CPUExecutionProvider"
|