Commit
·
3589927
1
Parent(s):
8d799e6
set max chars to 23 on mobile
Browse files- src/transcriber.py +1 -1
src/transcriber.py
CHANGED
@@ -23,7 +23,7 @@ def convert_seconds_to_time(seconds):
|
|
23 |
def write_srt(segments, max_words_per_line, srt_path, device_type):
|
24 |
|
25 |
# Pause and char heuristics
|
26 |
-
max_chars =
|
27 |
pause_threshold = 2.0
|
28 |
|
29 |
with open(srt_path, "w", encoding="utf-8") as file:
|
|
|
23 |
def write_srt(segments, max_words_per_line, srt_path, device_type):
|
24 |
|
25 |
# Pause and char heuristics
|
26 |
+
max_chars = 23 if device_type == "mobile" else 42
|
27 |
pause_threshold = 2.0
|
28 |
|
29 |
with open(srt_path, "w", encoding="utf-8") as file:
|