Closed milistu closed 7 months ago
Change sending a list of one dictionary with save keys to a list of dictionaries.
From: angle.encode([{'text': 'hello world1', 'text': 'hello world2'}], to_numpy=True) Change to: angle.encode([{'text': 'hello world1'}, {'text': 'hello world2'}], to_numpy=True)
Now we are getting the output shape (2, 1024) rather than (1, 1024).
LGTM. Thanks for your contribution!
Change sending a list of one dictionary with save keys to a list of dictionaries.
From: angle.encode([{'text': 'hello world1', 'text': 'hello world2'}], to_numpy=True) Change to: angle.encode([{'text': 'hello world1'}, {'text': 'hello world2'}], to_numpy=True)
Now we are getting the output shape (2, 1024) rather than (1, 1024).