What does "Api_token" correspond to?
Hello,In the code below, what does “Api_token” correspond to? The Access Tokens I’ve created don’t work.Thank youimport json
import requests

API_URL = "https://api-inference.huggingface.co/models/sentence-transformers/msmarco-distilbert-base-tas-b"
headers = {"Authorization": f"Bearer {api_token}"}

def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()

data = query(
    {
        "inputs": {
            "source_sentence": "That is a happy person",
            "sentences": [
                "That is a happy dog",
                "That is a very happy person",
                "Today is a sunny day"
            ]
        }
    }
2023-09-21T11:03:16Z
Just remove that part, since it is an open model:import json
import requests

API_URL = "https://api-inference.huggingface.co/models/sentence-transformers/msmarco-distilbert-base-tas-b"

def query(payload):
    response = requests.post(API_URL, json=payload)
    return response.json()

data = query({...})I’ve just tried it and the result should be[0.8534061312675476, 0.9814601540565491, 0.6550566554069519]