Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
spacesvstabs
Browse files
app.py
CHANGED
@@ -3,12 +3,12 @@ import requests
|
|
3 |
from subprocess import Popen, PIPE
|
4 |
|
5 |
try:
|
6 |
-
|
7 |
-
|
8 |
except:
|
9 |
import logging
|
10 |
-
|
11 |
-
|
12 |
|
13 |
def predict(input):
|
14 |
model_type = 'xVAPitch'
|
|
|
3 |
from subprocess import Popen, PIPE
|
4 |
|
5 |
try:
|
6 |
+
# start the process without waiting for a response
|
7 |
+
Popen(['python', 'server.py'], stdout=PIPE, stderr=PIPE)
|
8 |
except:
|
9 |
import logging
|
10 |
+
logging.error(f'Could not run xVASynth.')
|
11 |
+
sys.exit(0)
|
12 |
|
13 |
def predict(input):
|
14 |
model_type = 'xVAPitch'
|