Print correct filenames when files are skipped

This commit is contained in:
dokutan
2022-06-28 19:01:43 +02:00
parent 9fd7697c80
commit b0b93eb471
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ def main(files, threshold, limit, bs, csv, input_file, group_tags, name_only, mo
files = [click.open_file(filepath, "rb") for filepath in filepaths]
predictions = autotagger.predict(files, threshold=threshold, limit=limit, bs=bs)
for filepath, tags in zip(filepaths, predictions):
for filepath, tags in predictions:
output_result(filepath, tags, csv, group_tags, name_only)
def output_result(filepath, tags, csv, group_tags, name_only):