megaaziib commited on
Commit
9e2c99d
1 Parent(s): 81c8118

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index, file_big_npy):
32
  ):
33
  try:
34
  if tts_mode:
35
- if len(tts_text) > 600 and limitation:
36
  return "Text is too long", None
37
  if tts_text is None or tts_voice is None:
38
  return "You need to enter text and select a voice", None
@@ -46,7 +46,7 @@ def create_vc_fn(tgt_sr, net_g, vc, if_f0, file_index, file_big_npy):
46
  return "You need to upload an audio", None
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:
 
32
  ):
33
  try:
34
  if tts_mode:
35
+ if len(tts_text) > 500 and limitation:
36
  return "Text is too long", None
37
  if tts_text is None or tts_voice is None:
38
  return "You need to enter text and select a voice", None
 
46
  return "You need to upload an audio", None
47
  sampling_rate, audio = input_audio
48
  duration = audio.shape[0] / sampling_rate
49
+ if duration > 300 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: