import json from transformers import pipeline with open(f"sample_input_daily.json", "r") as f: sample = json.load(f) pipe = pipeline( "yield-estimation", model=".", trust_remote_code=True, ) out = pipe(sample) print(json.dumps(out, indent=2))