Update README.md
Browse files
README.md
CHANGED
@@ -58,8 +58,8 @@ for i, entry in enumerate(dataset):
|
|
58 |
del dataset
|
59 |
|
60 |
# embed the dataset
|
61 |
-
def embed(
|
62 |
-
return {"embedding" : model.encode(
|
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
|