אהלן אני מנסה להשתמש בAPI של huggingFace למודלים של AI ו
===group
```import requests
API_URL = "https://api-inference.huggingface.co/models/gpt2"
headers = {"Authorization": "Bearer hf_PRIVATE_TOKEN"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
data = query("Can you please let us know more details about your ")
print (data)
```kotlin
===
וכמובן במקום PRIVATE TOKEN את הטוקן שלי.
אבל אני מקבל כל הזמן את השגיאה:
requests.exceptions.SSLError: HTTPSConnectionPool(host='api-inference.huggingface.co', port=443): Max retries exceeded with url: /models/gpt2 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))
מותקן לי נטספארק על המחשב, זה מה שגורם לשגיאה?