Spaces:
Runtime error
Runtime error
gorkemgoknar
commited on
Commit
•
59e1d17
1
Parent(s):
b00b698
Update app.py
Browse files
app.py
CHANGED
@@ -502,7 +502,7 @@ def generate_speech(history):
|
|
502 |
# Until now nltk likely split sentences properly but we need additional
|
503 |
# check for longer sentence and split at last possible position
|
504 |
# Do whatever necessary, first break at hypens then spaces and then even split very long words
|
505 |
-
sentence_list=textwrap(sentence,300)
|
506 |
print("SPLITTED LONG SENTENCE:",sentence_list)
|
507 |
|
508 |
for sentence in sentence_list:
|
|
|
502 |
# Until now nltk likely split sentences properly but we need additional
|
503 |
# check for longer sentence and split at last possible position
|
504 |
# Do whatever necessary, first break at hypens then spaces and then even split very long words
|
505 |
+
sentence_list=textwrap.wrap(sentence,300)
|
506 |
print("SPLITTED LONG SENTENCE:",sentence_list)
|
507 |
|
508 |
for sentence in sentence_list:
|