We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Python example provided below is not working
Check below error:
Let me know if need anything..
The text was updated successfully, but these errors were encountered:
Working solution i want to merge is below.. Please check and give me permission so i can raise a PR
`import requests
API_URL = "https://api-inference.huggingface.co/models/gpt2" headers = {"Authorization": f"Bearer {API_TOKEN}"}
def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.json()
data = query({"inputs": "Can you please let us know more details about your "}) print(data[0]['generated_text'])`
Sorry, something went wrong.
No branches or pull requests
Hi,
Python example provided below is not working
Check below error:
Let me know if need anything..
The text was updated successfully, but these errors were encountered: