import requests

API_URL = "https://api-inference.huggingface.co/models/huggingface/prunebert-base-uncased-6-finepruned-w-distil-squad"
headers = {"Authorization": "Bearer api_UXqrzQBiZKXaWxstVwEKcYvHQpGSGiQGbr"}

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

output = query({
    "inputs": {
		"question": "What's my name?",
		"context": "My name is Clara and I live in Berkeley.",
	},
})
{}
region:us
TAGS
#region-us 

import requests

API_URL = "URL
headers = {"Authorization": "Bearer api_UXqrzQBiZKXaWxstVwEKcYvHQpGSGiQGbr"}

def query(payload):
	response = URL(API_URL, headers=headers, json=payload)
	return URL()

output = query({
    "inputs": {
		"question": "What's my name?",
		"context": "My name is Clara and I live in Berkeley.",
	},
})
TAGS
#region-us 

passage: TAGS
#region-us 
