nbroad HF staff commited on
Commit
43b32e0
1 Parent(s): b93ed22

text column name

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -340,7 +340,7 @@ def batch_embed(
340
  outputs = model(input_ids=ids, attention_mask=mask, token_type_ids=t_ids)
341
 
342
  embeds.extend(mean_pooling(outputs[0], mask).cpu().tolist())
343
- texts.extend([b[column_name] for b in batch])
344
 
345
  current_count += ids.shape[0]
346
 
 
340
  outputs = model(input_ids=ids, attention_mask=mask, token_type_ids=t_ids)
341
 
342
  embeds.extend(mean_pooling(outputs[0], mask).cpu().tolist())
343
+ texts.extend(batch[column_name])
344
 
345
  current_count += ids.shape[0]
346