Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ import gradio as gr
|
|
3 |
|
4 |
MAX_TXT_LEN = 5000
|
5 |
def tts(text: str):
|
6 |
-
|
7 |
-
|
8 |
-
|
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 |
|