Spaces:
Running
Running
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) |