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 ?

Opera Instantané_2024-10-23_154806_localhost.png

Sign up or log in to comment