Spaces:
Running
Running
File size: 473 Bytes
f25a759 b86b333 080e0ec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import subprocess
try:
subprocess.check_call(['pip', 'install', '-r', 'requirements.txt'])
except subprocess.CalledProcessError as e:
print(f"An error occurred while installing packages: {e}")
command = [
'python', 'voicevox_engine/run.py',
'--voicevox_dir=linux-cpu',
'--host', '0.0.0.0',
'--port', '50021'
]
result = subprocess.run(command, capture_output=True, text=True)
print("Outputs: \n", result.stdout)
print("Errors: \n", result.stderr) |