amirgame197 commited on
Commit
40b6778
·
verified ·
1 Parent(s): ae228f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,9 +3,9 @@ import gradio as gr
3
 
4
  MAX_TXT_LEN = 5000
5
  def tts(text: str):
6
- #if len(text) > MAX_TXT_LEN:
7
- # text = text[:MAX_TXT_LEN]
8
- # print(f"Input text was cutoff since it went over the {MAX_TXT_LEN} character limit.")
9
  print(text)
10
  import subprocess
11
 
 
3
 
4
  MAX_TXT_LEN = 5000
5
  def tts(text: str):
6
+ if len(text) > MAX_TXT_LEN:
7
+ text = text[:MAX_TXT_LEN]
8
+ print(f"Input text was cutoff since it went over the {MAX_TXT_LEN} character limit.")
9
  print(text)
10
  import subprocess
11