Update README.md
Browse files
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 |
-
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|