Skip to content

Commit

Permalink
Merge pull request #10 from rishiraj/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
rishiraj authored Apr 14, 2024
2 parents 4e91fa0 + e10a373 commit 51ecc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spanking/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def add_texts(self, texts):
def delete_text(self, index):
if 0 <= index < len(self.texts):
self.texts.pop(index)
self.embeddings = self.embeddings.at[index].delete()
self.embeddings = jnp.delete(self.embeddings, index, axis=0)
else:
raise IndexError("Invalid index")

Expand Down

0 comments on commit 51ecc20

Please sign in to comment.