jason9693/APEACH
Viewer • Updated • 11.7k • 2.45k • 5
How to use jason9693/koelectra-small-v3-generator-apeach with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jason9693/koelectra-small-v3-generator-apeach") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jason9693/koelectra-small-v3-generator-apeach")
model = AutoModelForSequenceClassification.from_pretrained("jason9693/koelectra-small-v3-generator-apeach")YAML Metadata Error:"tags" must be an array
You can use cURL to access this model:
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://huggingface.co/proxy/api-inference.huggingface.co/models/jason9693/autotrain-kor_hate_eval-742522663
Or Python API:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("jason9693/autotrain-kor_hate_eval-742522663", use_auth_token=True)
tokenizer = AutoTokenizer.from_pretrained("jason9693/autotrain-kor_hate_eval-742522663", use_auth_token=True)
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
outputs = model(**inputs)