Spaces:
Sleeping
Sleeping
Jirat Jaturanpinyo
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,18 +0,0 @@
|
|
1 |
-
import subprocess
|
2 |
-
|
3 |
-
try:
|
4 |
-
subprocess.check_call(['pip', 'install', '-r', 'requirements.txt'])
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|