megaaziib commited on
Commit
8adad37
·
1 Parent(s): f5ebd58

updated message

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,7 +47,7 @@ def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index, file_big_npy):
47
  sampling_rate, audio = input_audio
48
  duration = audio.shape[0] / sampling_rate
49
  if duration > 330 and limitation:
50
- return "Please upload an audio file that is less than 5 minutes.", None
51
  audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
52
  if len(audio.shape) > 1:
53
  audio = librosa.to_mono(audio.transpose(1, 0))
@@ -157,7 +157,7 @@ if __name__ == '__main__':
157
  if args.files:
158
  vc_input = gr.Textbox(label="Input audio path")
159
  else:
160
- vc_input = gr.Audio(label="Input audio"+' (less than 20 seconds)' if limitation else '')
161
  vc_transpose = gr.Number(label="Transpose", value=0)
162
  vc_f0method = gr.Radio(
163
  label="Pitch extraction algorithm, PM is fast but Harvest is better for low frequencies",
 
47
  sampling_rate, audio = input_audio
48
  duration = audio.shape[0] / sampling_rate
49
  if duration > 330 and limitation:
50
+ return "Please upload an audio file that is less than 5 minutes 30 seconds.", None
51
  audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
52
  if len(audio.shape) > 1:
53
  audio = librosa.to_mono(audio.transpose(1, 0))
 
157
  if args.files:
158
  vc_input = gr.Textbox(label="Input audio path")
159
  else:
160
+ vc_input = gr.Audio(label="Input audio"+' (less than 5 minutes 30 seconds)' if limitation else '')
161
  vc_transpose = gr.Number(label="Transpose", value=0)
162
  vc_f0method = gr.Radio(
163
  label="Pitch extraction algorithm, PM is fast but Harvest is better for low frequencies",