Oh , maybe you aren't sending the token correctly .When the auth is enabled , every request needs a barrier token in the header . so if your code looks like this :
import requests
response = requests.post(url, json={"inputs": "hello"})
It needs to be more like this
headers = {"Authorization": "Bearer hf_yourTokenHere"}
response = requests.post(url, json={"inputs": "hello"}, headers=headers)