Spaces:
Runtime error
Runtime error
File size: 365 Bytes
e17c3b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import requests
API_URL = "https://api-inference.huggingface.co/models/AdaptLLM/law-LLM"
API_TOKEN="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"
headers = {"Authorization": f"Bearer {API_TOKEN}"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "Can",
})
print(output) |