更新 README.md d0ff35c
Bluishoul commited on
How to use hapboy/gitee-task-owner-suggestion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="hapboy/gitee-task-owner-suggestion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("hapboy/gitee-task-owner-suggestion")
model = AutoModelForSequenceClassification.from_pretrained("hapboy/gitee-task-owner-suggestion")