mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 12:10:09 +01:00
Update example
This commit is contained in:
@@ -174,7 +174,7 @@
|
||||
" rsp = TextEmbedding.call(model=TextEmbedding.Models.text_embedding_v1,\n",
|
||||
" input=docs)\n",
|
||||
" embeddings = [record['embedding'] for record in rsp.output['embeddings']]\n",
|
||||
" return embeddings if isinstance(news, list) else embeddings[0]"
|
||||
" return embeddings if isinstance(docs, list) else embeddings[0]"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user