worldqwq commited on
Commit
a68edd0
·
1 Parent(s): 5397b8a

fixed line 260

Browse files

Former-commit-id: 2decbe32b7d783048025acd12c5d3974dcffb5c8

Files changed (1) hide show
  1. 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", 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: