Spaces:
Running
Running
Commit
·
f9bd78e
1
Parent(s):
45e3615
Update app_multi.py
Browse files- app_multi.py +2 -2
app_multi.py
CHANGED
@@ -457,8 +457,8 @@ def vc_func(
|
|
457 |
|
458 |
# https://huggingface.co/spaces/zomehwh/rvc-models/blob/main/app.py#L49
|
459 |
# Can be change well, we will see
|
460 |
-
if (audio_npy.shape[0] / audio_samp) >
|
461 |
-
return (None, 'Input audio is longer than
|
462 |
|
463 |
# Bloody hell: https://stackoverflow.com/questions/26921836/
|
464 |
if audio_npy.dtype != np.float32: # :thonk:
|
|
|
457 |
|
458 |
# https://huggingface.co/spaces/zomehwh/rvc-models/blob/main/app.py#L49
|
459 |
# Can be change well, we will see
|
460 |
+
if (audio_npy.shape[0] / audio_samp) > 600 and in_hf_space:
|
461 |
+
return (None, 'Input audio is longer than 600 secs.')
|
462 |
|
463 |
# Bloody hell: https://stackoverflow.com/questions/26921836/
|
464 |
if audio_npy.dtype != np.float32: # :thonk:
|