Feature Extraction
Adapters
English
Law / Mind
Washedashore's picture
Create Mind
3be54ec verified
raw
history blame contribute delete
364 Bytes
import requests
API_URL = "https://api-inference.huggingface.co/models/bigcode/starcoder"
headers = {"Authorization": "Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
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 ",
})