Spaces:
Sleeping
Sleeping
Merge branch 'eason/main' of https://github.com/project-kxkg/project-t into eason/main
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -257,7 +257,7 @@ def translate(srt, script_arr, range_arr, model_name, video_name, video_link, at
|
|
257 |
# if failure still happen, split into smaller tokens
|
258 |
if attempts_count == 0:
|
259 |
single_sentences = sentence.split("\n\n")
|
260 |
-
logging.info("merge sentence issue found for range
|
261 |
translate = ""
|
262 |
for i, single_sentence in enumerate(single_sentences):
|
263 |
if i == len(single_sentences) - 1:
|
|
|
257 |
# if failure still happen, split into smaller tokens
|
258 |
if attempts_count == 0:
|
259 |
single_sentences = sentence.split("\n\n")
|
260 |
+
logging.info(f"merge sentence issue found for range {range}")
|
261 |
translate = ""
|
262 |
for i, single_sentence in enumerate(single_sentences):
|
263 |
if i == len(single_sentences) - 1:
|