xmj2002/Chinese_modern_classical
Viewer • Updated • 972k • 213 • 48
How to use ccj692709344/HF_demo with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ccj692709344/HF_demo") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("ccj692709344/HF_demo", dtype="auto")