ming 3 лет назад
Родитель
Сommit
a194954acb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -476,7 +476,7 @@ def adjustSub_by_text_similarity(gts_in,gens_raw):
     alls_tag = gts_in + combine2_tag + combine3_tag
     alls_tag = gts_in + combine2_tag + combine3_tag
     for idx in range(len(adjusted)):
     for idx in range(len(adjusted)):
         match_text = difflib.get_close_matches(adjusted[idx], alls_tag, cutoff=0.1)
         match_text = difflib.get_close_matches(adjusted[idx], alls_tag, cutoff=0.1)
-        adjusted[idx] = match_text
+        adjusted[idx] = match_text[0]
     return adjusted
     return adjusted
 
 
 def trim_punctuation(s):
 def trim_punctuation(s):