Spaces:
Runtime error
Runtime error
Update app_multi.py
Browse files- app_multi.py +3 -3
app_multi.py
CHANGED
@@ -146,8 +146,8 @@ def vc_func(
|
|
146 |
|
147 |
# https://huggingface.co/spaces/zomehwh/rvc-models/blob/main/app.py#L49
|
148 |
# Can be change well, we will see
|
149 |
-
if (audio_npy.shape[0] / audio_samp) >
|
150 |
-
return (None, 'Input audio is longer than
|
151 |
|
152 |
# Bloody hell: https://stackoverflow.com/questions/26921836/
|
153 |
if audio_npy.dtype != np.float32: # :thonk:
|
@@ -186,7 +186,7 @@ def vc_func(
|
|
186 |
times,
|
187 |
pitch_int,
|
188 |
f0_method,
|
189 |
-
path.join('model', model['name'], model['metadata']),
|
190 |
feat_ratio,
|
191 |
model['if_f0'],
|
192 |
filter_radius,
|
|
|
146 |
|
147 |
# https://huggingface.co/spaces/zomehwh/rvc-models/blob/main/app.py#L49
|
148 |
# Can be change well, we will see
|
149 |
+
if (audio_npy.shape[0] / audio_samp) > 60 and in_hf_space:
|
150 |
+
return (None, 'Input audio is longer than 60 secs.')
|
151 |
|
152 |
# Bloody hell: https://stackoverflow.com/questions/26921836/
|
153 |
if audio_npy.dtype != np.float32: # :thonk:
|
|
|
186 |
times,
|
187 |
pitch_int,
|
188 |
f0_method,
|
189 |
+
path.join('model', model['name'], model['metadata']['feat_index']),
|
190 |
feat_ratio,
|
191 |
model['if_f0'],
|
192 |
filter_radius,
|