Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ffmpeg; abs path to xvaserver
Browse files- app.py +1 -15
- packages.txt +1 -1
app.py
CHANGED
@@ -11,7 +11,7 @@ def run_xvaserver():
|
|
11 |
# try:
|
12 |
# start the process without waiting for a response
|
13 |
print('Running xVAServer subprocess...\n')
|
14 |
-
xvaserver = Popen(['python', 'resources/app/server.py'], stdout=PIPE, stderr=PIPE, cwd=f'{os.path.dirname(os.path.abspath(__file__))}/resources/app/')
|
15 |
# except:
|
16 |
# print('Could not run xVASynth.')
|
17 |
# sys.exit(0)
|
@@ -38,20 +38,6 @@ def run_xvaserver():
|
|
38 |
# load default voice model
|
39 |
load_model()
|
40 |
|
41 |
-
# Read and print stdout and stderr of the subprocess
|
42 |
-
while True:
|
43 |
-
output = xvaserver.stdout.readline()
|
44 |
-
if output == '' and xvaserver.poll() is not None:
|
45 |
-
break
|
46 |
-
if output:
|
47 |
-
print(output.strip())
|
48 |
-
|
49 |
-
error = xvaserver.stderr.readline()
|
50 |
-
if error == '' and xvaserver.poll() is not None:
|
51 |
-
break
|
52 |
-
if error:
|
53 |
-
print(error.strip(), file=sys.stderr)
|
54 |
-
|
55 |
# Wait for the process to exit
|
56 |
xvaserver.wait()
|
57 |
|
|
|
11 |
# try:
|
12 |
# start the process without waiting for a response
|
13 |
print('Running xVAServer subprocess...\n')
|
14 |
+
xvaserver = Popen(['python', f'{os.path.dirname(os.path.abspath(__file__))}/resources/app/server.py'], stdout=PIPE, stderr=PIPE, cwd=f'{os.path.dirname(os.path.abspath(__file__))}/resources/app/')
|
15 |
# except:
|
16 |
# print('Could not run xVASynth.')
|
17 |
# sys.exit(0)
|
|
|
38 |
# load default voice model
|
39 |
load_model()
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
# Wait for the process to exit
|
42 |
xvaserver.wait()
|
43 |
|
packages.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
build-essential llvm python3-dev python3-torch python3-numba python3-llvmlite python3-scipy liblapack-dev libblas-dev
|
|
|
1 |
+
build-essential llvm python3-dev python3-torch python3-numba python3-llvmlite python3-scipy liblapack-dev libblas-dev ffmpeg
|