Flowise and embedding
#21
by
charlycop
- opened
Hi Guys,
Using the demo script, the embedding models work.
import requests
API_URL = "/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2FWhereIsAI%2FUAE-Large-V1"
headers = {"Authorization": "Bearer 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", "x-wait-for-model":"true" }
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "Today is a sunny day and I will get some ice cream.",
}
)
print(output)
However, when I give the same information to the flowise embedding huggingface model, it woesn't work, have you tried ? Any idea to solve this problem ?