- Notifications
You must be signed in to change notification settings - Fork352
Adding embed_array for getting the embeddings of multiple strings#686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
be7052e2d949fb1ebfd01b20ed8de0738dcf6144049425b63039da6703abdcdc5f77986ffabc90b0e6664b2e14d78bda859111a49File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -112,8 +112,10 @@ def transform(task, args, inputs): | ||
| def embed(transformer, inputs, kwargs): | ||
| try: | ||
| inputs = json.loads(inputs) | ||
| except json.decoder.JSONDecodeError: | ||
| ||
| pass | ||
| kwargs = json.loads(kwargs) | ||
| ensure_device(kwargs) | ||