Spaces:
Running
Running
amirgame197
commited on
Commit
•
707a844
1
Parent(s):
6568b06
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import gradio as gr
|
|
3 |
|
4 |
MAX_TXT_LEN = 5000
|
5 |
def tts(text: str):
|
6 |
-
if len(text) > MAX_TXT_LEN:
|
7 |
-
|
8 |
-
|
9 |
-
print(text)
|
10 |
import subprocess
|
11 |
|
12 |
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
|
|
|
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 |
|
12 |
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
|