mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 04:23:45 +01:00
try using jina clip v2(v3 is not multimodal)
This commit is contained in:
3
jina.py
3
jina.py
@@ -14,8 +14,7 @@ def get_embedding(input: list):
|
|||||||
headers["Authorization"] = f"Bearer {os.environ['JINA_TOKEN']}"
|
headers["Authorization"] = f"Bearer {os.environ['JINA_TOKEN']}"
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"model": "jina-embeddings-v3",
|
"model": "jina-clip-v2",
|
||||||
"task": "text-matching",
|
|
||||||
"input": input
|
"input": input
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user