Skip to content

Commit 7b375b6

Browse files
committed
Remove unused variable in utils and fix import warning
Deleted the unused 'effective_max' variable from split_text_by_length in utils.py. Added noqa to suppress import order warning in run.py.
1 parent 1275072 commit 7b375b6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ttsfm-web/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
eventlet.monkey_patch()
99

10-
from app import DEBUG, HOST, PORT, app, socketio
10+
from app import DEBUG, HOST, PORT, app, socketio # noqa: E402
1111

1212
if __name__ == '__main__':
1313
print(f"Starting TTSFM with WebSocket support on {HOST}:{PORT}")

ttsfm/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ def split_text_by_length(
312312
return [text]
313313

314314
chunks: List[str] = []
315-
effective_max = max_length
316315

317316
if preserve_words:
318317
sentences = _split_into_sentences(text)

0 commit comments

Comments
 (0)