Ver código fonte

gslide update

ming 4 anos atrás
pai
commit
25d398388c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -481,7 +481,7 @@ def adjustSub_by_text_similarity(gts_in,gens_raw):
     print(alls_tag)
     for idx in range(len(adjusted)):
         print('adj:',adjusted[idx])
-        if adjusted[idx] not None:
+        if adjusted[idx] is not None:
             match_text = difflib.get_close_matches(adjusted[idx], alls_tag, cutoff=0.1)
             adjusted[idx] = match_text[0]
     return adjusted