Ver Fonte

bug fix

ming há 3 anos atrás
pai
commit
b693f3d6ea
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -447,7 +447,7 @@ def adjustSub_by_text_similarity(gts_in,gens_raw):
     for i in range(len(gts)):
         rep_ls = text_parser.replace_list(gts[i])
         for reptxt in rep_ls:
-            gts[i] = gts[i].replace(reptxt)
+            gts[i] = gts[i].replace(reptxt,'')
     print(gts)
     gens = []
     for idx in range(int((len(gens_raw)+1)/4)):