rafaaa2105 commited on
Commit
5baec5c
·
verified ·
1 Parent(s): d89b70e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -56,11 +56,8 @@ def tts(text,
56
  torch.cuda.manual_seed(random_seed)
57
  np.random.seed(random_seed)
58
 
59
- text_len = len(text)
60
- if text_len > 200:
61
- raise gr.Error("Text length limited to 200 characters for this demo. Current text length is " + str(text_len))
62
-
63
- else:
64
  text = text_to_sequence(str(text), ["english_cleaners2"])
65
 
66
  token = add_blank_token(text).unsqueeze(0).cuda()
 
56
  torch.cuda.manual_seed(random_seed)
57
  np.random.seed(random_seed)
58
 
59
+
60
+
 
 
 
61
  text = text_to_sequence(str(text), ["english_cleaners2"])
62
 
63
  token = add_blank_token(text).unsqueeze(0).cuda()