Spaces:
Running
Running
Jirat Jaturanpinyo
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,4 +5,14 @@ try:
|
|
5 |
except subprocess.CalledProcessError as e:
|
6 |
print(f"An error occurred while installing packages: {e}")
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
except subprocess.CalledProcessError as e:
|
6 |
print(f"An error occurred while installing packages: {e}")
|
7 |
|
8 |
+
command = [
|
9 |
+
'python', 'voicevox_engine/run.py',
|
10 |
+
'--voicevox_dir=linux-cpu',
|
11 |
+
'--host', '0.0.0.0',
|
12 |
+
'--port', '50021'
|
13 |
+
]
|
14 |
+
|
15 |
+
result = subprocess.run(command, capture_output=True, text=True)
|
16 |
+
|
17 |
+
print("Outputs: \n", result.stdout)
|
18 |
+
print("Errors: \n", result.stderr)
|