Alexlima commited on
Commit
6e7078f
·
1 Parent(s): 97a7a58

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -10
README.md CHANGED
@@ -1,10 +0,0 @@
1
- API_URL = "https://api-inference.huggingface.co/models/bert-base-uncased"
2
- headers = {"Authorization": "Bearer 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"}
3
-
4
- def query(payload):
5
- response = requests.post(API_URL, headers=headers, json=payload)
6
- return response.json()
7
-
8
- output = query({
9
- "inputs": "The answer to the universe is [MASK].",
10
- })