Willaim commited on
Commit
71406a9
1 Parent(s): 309f6c0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
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
+ })