Nick1 commited on
Commit
e306dc3
1 Parent(s): 9f286bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def create_vc_fn(model_name, tgt_sr, net_g, vc, if_f0, version, file_index):
89
  if sampling_rate != 16000:
90
  audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000)
91
  elif vc_audio_mode == "TTS Audio":
92
- if len(tts_text) > 100 and spaces:
93
  return "Text is too long", None
94
  if tts_text is None or tts_voice is None:
95
  return "You need to enter text and select a voice", None
 
89
  if sampling_rate != 16000:
90
  audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000)
91
  elif vc_audio_mode == "TTS Audio":
92
+ if len(tts_text) > 300 and spaces:
93
  return "Text is too long", None
94
  if tts_text is None or tts_voice is None:
95
  return "You need to enter text and select a voice", None