not-lain commited on
Commit
12494be
1 Parent(s): 63a4b0f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -58,8 +58,8 @@ for i, entry in enumerate(dataset):
58
  del dataset
59
 
60
  # embed the dataset
61
- def embed(batch):
62
- return {"embedding" : model.encode(batch["text"])}
63
  data = data.map(embed)
64
 
65
  # push to hub
 
58
  del dataset
59
 
60
  # embed the dataset
61
+ def embed(row):
62
+ return {"embedding" : model.encode(row["text"])}
63
  data = data.map(embed)
64
 
65
  # push to hub