nbroad HF staff commited on
Commit
c1fd1fe
·
1 Parent(s): 41912a4

reset texts

Browse files
Files changed (1) hide show
  1. utils.py +1 -0
utils.py CHANGED
@@ -339,6 +339,7 @@ def batch_embed(
339
  if len(embeds) > upload_batch_size:
340
  push_to_repo(repo, last_count, current_count, embeds, texts)
341
  embeds = []
 
342
  last_count = current_count
343
 
344
  # Provide updates
 
339
  if len(embeds) > upload_batch_size:
340
  push_to_repo(repo, last_count, current_count, embeds, texts)
341
  embeds = []
342
+ texts = []
343
  last_count = current_count
344
 
345
  # Provide updates