Spaces:
Runtime error
Runtime error
VoiceCloning-be
commited on
Update core.py
Browse files
core.py
CHANGED
@@ -51,7 +51,7 @@ def get_config():
|
|
51 |
|
52 |
|
53 |
# Infer
|
54 |
-
@spaces.GPU
|
55 |
def run_infer_script(
|
56 |
pitch: int,
|
57 |
filter_radius: int,
|
@@ -103,7 +103,7 @@ def run_infer_script(
|
|
103 |
|
104 |
|
105 |
# Batch infer
|
106 |
-
@spaces.GPU
|
107 |
def run_batch_infer_script(
|
108 |
pitch: int,
|
109 |
filter_radius: int,
|
@@ -170,7 +170,7 @@ def run_batch_infer_script(
|
|
170 |
|
171 |
|
172 |
# TTS
|
173 |
-
@spaces.GPU
|
174 |
def run_tts_script(
|
175 |
tts_text: str,
|
176 |
tts_voice: str,
|
@@ -246,7 +246,7 @@ def run_tts_script(
|
|
246 |
|
247 |
|
248 |
# Preprocess
|
249 |
-
@spaces.GPU()
|
250 |
def run_preprocess_script(
|
251 |
model_name: str, dataset_path: str, sample_rate: int, cpu_cores: int
|
252 |
):
|
@@ -273,7 +273,7 @@ def run_preprocess_script(
|
|
273 |
|
274 |
|
275 |
# Extract
|
276 |
-
@spaces.GPU
|
277 |
def run_extract_script(
|
278 |
model_name: str,
|
279 |
rvc_version: str,
|
@@ -331,7 +331,7 @@ def run_extract_script(
|
|
331 |
|
332 |
|
333 |
# Train
|
334 |
-
@spaces.GPU()
|
335 |
def run_train_script(
|
336 |
model_name: str,
|
337 |
rvc_version: str,
|
|
|
51 |
|
52 |
|
53 |
# Infer
|
54 |
+
@spaces.GPU(duration=120)
|
55 |
def run_infer_script(
|
56 |
pitch: int,
|
57 |
filter_radius: int,
|
|
|
103 |
|
104 |
|
105 |
# Batch infer
|
106 |
+
@spaces.GPU(duration=200)
|
107 |
def run_batch_infer_script(
|
108 |
pitch: int,
|
109 |
filter_radius: int,
|
|
|
170 |
|
171 |
|
172 |
# TTS
|
173 |
+
@spaces.GPU(duration=120)
|
174 |
def run_tts_script(
|
175 |
tts_text: str,
|
176 |
tts_voice: str,
|
|
|
246 |
|
247 |
|
248 |
# Preprocess
|
249 |
+
@spaces.GPU(duration=120)
|
250 |
def run_preprocess_script(
|
251 |
model_name: str, dataset_path: str, sample_rate: int, cpu_cores: int
|
252 |
):
|
|
|
273 |
|
274 |
|
275 |
# Extract
|
276 |
+
@spaces.GPU(duration=120)
|
277 |
def run_extract_script(
|
278 |
model_name: str,
|
279 |
rvc_version: str,
|
|
|
331 |
|
332 |
|
333 |
# Train
|
334 |
+
@spaces.GPU(duration=360)
|
335 |
def run_train_script(
|
336 |
model_name: str,
|
337 |
rvc_version: str,
|