Test / Data
Chirp's picture
Create Data (#1)
5087b78
raw
history blame
379 Bytes
import requests
API_URL = "https://api-inference.huggingface.co/models/KoboldAI/OPT-2.7B-Nerys-v2"
headers = {"Authorization": "Bearer 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"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "Can you please let us know more details about your ",
})