Nick1 commited on
Commit
f592810
·
1 Parent(s): 4368877

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,8 +81,8 @@ def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):
81
  return "You need to upload an audio", None
82
  sampling_rate, audio = vc_upload
83
  duration = audio.shape[0] / sampling_rate
84
- if duration > 60 and spaces:
85
- return "Please upload an audio file that is less than 60 seconds. If you need to generate a longer audio file, please use Colab.", None
86
  audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
87
  if len(audio.shape) > 1:
88
  audio = librosa.to_mono(audio.transpose(1, 0))
@@ -375,7 +375,7 @@ if __name__ == '__main__':
375
  gr.Markdown(
376
  "<div align='center'>\n\n"+
377
  "# RVC Modal\n\n"+
378
- "### Ya upload audio nya 20s saja.\n\n"+
379
  "[Enjoy]\n\n"+
380
  "</div>\n\n"+
381
  ""
 
81
  return "You need to upload an audio", None
82
  sampling_rate, audio = vc_upload
83
  duration = audio.shape[0] / sampling_rate
84
+ if duration > 90 and spaces:
85
+ return "Please upload an audio file that is less than 90 seconds. If you need to generate a longer audio file, please use Colab.", None
86
  audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
87
  if len(audio.shape) > 1:
88
  audio = librosa.to_mono(audio.transpose(1, 0))
 
375
  gr.Markdown(
376
  "<div align='center'>\n\n"+
377
  "# RVC Modal\n\n"+
378
+ "### Ya upload audio nya 90s saja.\n\n"+
379
  "[Enjoy]\n\n"+
380
  "</div>\n\n"+
381
  ""