Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1 |
---
|
2 |
license: bigscience-bloom-rail-1.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: bigscience-bloom-rail-1.0
|
3 |
---
|
4 |
+
import requests
|
5 |
+
|
6 |
+
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
|
7 |
+
headers = {"Authorization": "Bearer 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"}
|
8 |
+
|
9 |
+
def query(payload):
|
10 |
+
response = requests.post(API_URL, headers=headers, json=payload)
|
11 |
+
return response.json()
|
12 |
+
|
13 |
+
output = query({
|
14 |
+
"inputs": "Can you please let us know more details about your ",
|
15 |
+
})
|