Jirat Jaturanpinyo commited on
Commit
080e0ec
·
verified ·
1 Parent(s): b86b333

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
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
- subprocess.run(['python', 'voicevox_engine/run.py'])
 
 
 
 
 
 
 
 
 
 
 
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)