BartPoint commited on
Commit
c94fa73
1 Parent(s): e0926da

Update app_multi.py

Browse files
Files changed (1) hide show
  1. 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) > 30 and in_hf_space:
150
- return (None, 'Input audio is longer than 30 secs.')
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,