OpenAssistant / app.py
Johan09033's picture
Rename app.js to app.py
e8ddf7b
raw
history blame
389 Bytes
import requests
API_URL = "https://api-inference.huggingface.co/models/OpenAssistant/oasst-sft-1-pythia-12b"
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 ",
})