Flowise and embedding
#21
by
charlycop
- opened
Hi Guys,
Using the demo script, the embedding models work.
import requests
API_URL = "https://api-inference.huggingface.co/models/WhereIsAI/UAE-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 ?