import requests
= "https://api-inference.huggingface.co/models/mistralai/Mistral-7B-v0.1"
API_URL = {"Authorization": "Bearer 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"}
headers
def query(payload):
= requests.post(API_URL, headers=headers, json=payload)
response return response.json()
MODELEX-GPT-v0.1
API Request
Token: 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
Prompt:
Can you please let us know more details about your
= query({
output "inputs": "Can you please let us know more details about your ",
}) output
[{'generated_text': 'Can you please let us know more details about your 2018-2019 season?\n\nWe are a small, but very'}]
Canasa is the
= query({
output "inputs": "Canada is the",
}) output
[{'generated_text': 'Canada is the second largest country in the world, and it is also one of the most beautiful. It is a'}]
= query({
output "inputs": "Rich Dad Poor Dad is a 1997 book written by",
}) output
[{'generated_text': 'Rich Dad Poor Dad is a 1997 book written by Robert Kiyosaki and Sharon Lechter. It has been on the New York Times Best'}]