kppkkp/OneChart at main (original) (raw)

Use a pipeline as a high-level helper

from transformers import pipeline
pipe = pipeline("image-feature-extraction", model="kppkkp/OneChart", trust_remote_code=True)

Load model directly

from transformers import AutoModel
model = AutoModel.from_pretrained("kppkkp/OneChart", trust_remote_code=True, dtype="auto")