hynt commited on
Commit
5e8f0ac
·
verified ·
1 Parent(s): cda3ab4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def infer_tts(ref_audio_orig: str, gen_text: str, speed: float = 1.0, request: g
52
  if not gen_text.strip():
53
  raise gr.Error("Please enter the text content to generate voice.")
54
  if len(gen_text.split()) > 1000:
55
- raise gr.Error("Please enter text content with less than 100 words.")
56
 
57
  try:
58
  ref_audio, ref_text = preprocess_ref_audio_text(ref_audio_orig, "")
 
52
  if not gen_text.strip():
53
  raise gr.Error("Please enter the text content to generate voice.")
54
  if len(gen_text.split()) > 1000:
55
+ raise gr.Error("Please enter text content with less than 1000 words.")
56
 
57
  try:
58
  ref_audio, ref_text = preprocess_ref_audio_text(ref_audio_orig, "")