Spaces:
Runtime error
Runtime error
Update inference/svs/base_svs_infer.py
Browse files
inference/svs/base_svs_infer.py
CHANGED
@@ -14,8 +14,6 @@ import librosa
|
|
14 |
import glob
|
15 |
import re
|
16 |
|
17 |
-
import spaces
|
18 |
-
|
19 |
class BaseSVSInfer:
|
20 |
def __init__(self, hparams, device=None):
|
21 |
if device is None:
|
@@ -226,7 +224,6 @@ class BaseSVSInfer:
|
|
226 |
def postprocess_output(self, output):
|
227 |
return output
|
228 |
|
229 |
-
@spaces.GPU(duration=180)
|
230 |
def infer_once(self, inp):
|
231 |
inp = self.preprocess_input(inp, input_type=inp['input_type'] if inp.get('input_type') else 'word')
|
232 |
output = self.forward_model(inp)
|
|
|
14 |
import glob
|
15 |
import re
|
16 |
|
|
|
|
|
17 |
class BaseSVSInfer:
|
18 |
def __init__(self, hparams, device=None):
|
19 |
if device is None:
|
|
|
224 |
def postprocess_output(self, output):
|
225 |
return output
|
226 |
|
|
|
227 |
def infer_once(self, inp):
|
228 |
inp = self.preprocess_input(inp, input_type=inp['input_type'] if inp.get('input_type') else 'word')
|
229 |
output = self.forward_model(inp)
|