Downloads · 30 days
0
xujiacheng127/anchi-bert
anchi-bert is a machine learning model from xujiacheng127. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Feb 15, 2022
Repo size
823 MB
Likes
3
Public
Click a slice to open those files.
.bin412 MB · 100%
From the Hugging Face model README
import json
import requests
headers = {"Authorization": f"Bearer {API_TOKEN}"} API_URL = "https://api-inference.huggingface.co/models/bert-base-uncased"
def query(payload): data = json.dumps(payload) response = requests.request("POST", API_URL, headers=headers, data=data) return json.loads(response.content.decode("utf-8"))
data = query({"inputs": "The answer to the universe is [MASK]."})