[Sorry for my bad English, English is not my native language.]
This is my first model that I have installed Hugging Face on. (BaranKanat/BerTurk-SpamSMS · Hugging Face) It simply checks whether incoming SMS are SPAM or not.
I simply wrote a python code as follows.
import requests
API_URL = "https://api-inference.huggingface.co/models/BaranKanat/BerTurk-SpamSMS"
headers = {"Authorization": "Bearer hf_XXXXXXXX"}
payload = {"inputs": "2000 TL DENEME BONUSU KAZANDINIZ !!! YATIRIM SARTI YOK KAZANC ve CEKIM LIMITI YOK."}
response = requests.post(API_URL, headers=headers, json=payload)
print(response.json())
But I am getting the following error.
{'error': 'Task not found for this model'}
No matter what I did, I couldn’t fix this error. It asks me to classify my model. I did that too but it still didn’t work.