la-llama-que-llama / bloom.py
juanma1907's picture
Upload folder using huggingface_hub
462dacf
import requests
API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
headers = {"Authorization": "Bearer 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"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
print(response.json())
return response.json()
output = query({
"inputs": "Can you please let us know more details about your ",
})
print(output)