Spaces:
Runtime error
Runtime error
text column name
Browse files
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([
|
| 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 |
|