MarcusSu1216 commited on
Commit
5e02eab
1 Parent(s): 9847bf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def vc_fn(sid, input_audio, vc_transform, auto_f0,cluster_ratio, noise_scale):
24
  sampling_rate, audio = input_audio
25
  # print(audio.shape,sampling_rate)
26
  duration = audio.shape[0] / sampling_rate
27
- if duration > 45:
28
  return "请上传小于100s的音频,需要转换长音频请本地进行转换", None
29
  audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
30
  if len(audio.shape) > 1:
 
24
  sampling_rate, audio = input_audio
25
  # print(audio.shape,sampling_rate)
26
  duration = audio.shape[0] / sampling_rate
27
+ if duration > 100:
28
  return "请上传小于100s的音频,需要转换长音频请本地进行转换", None
29
  audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
30
  if len(audio.shape) > 1: