Skip to content

Commit af10fe4

Browse files
tqdm when deduplicating
1 parent 90201ed commit af10fe4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WDoc/utils/batch_file_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def deterministic_sorter(doc_dict: DocDict) -> int:
413413
dupes = set()
414414
deduped = {}
415415
[dupes.add(ch) for ch in content_hash if content_hash.count(ch) > 1]
416-
for idoc, doc in enumerate(docs):
416+
for idoc, doc in enumerate(tqdm(docs, desc="Deduplicating", unit="doc")):
417417
ch = doc.metadata["content_hash"]
418418
if not dupes:
419419
break

0 commit comments

Comments
 (0)