Spaces:
Runtime error
Runtime error
File size: 363 Bytes
7bb7c0a b2c286e b652094 7bb7c0a b2c286e 7bb7c0a |
1 2 3 4 5 6 7 8 9 10 11 12 |
import requests
API_URL = "https://api-inference.huggingface.co/models/google/gemma-7b"
headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "Can you please let us know more details about your ",
}) |