YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/model-cards#model-card-metadata)
with open(os.path.join(model_dir, 'README.md'), 'w') as f: f.write("# Stacking Model\nThis is a stacking model trained on agricultural yield data.")
with open(os.path.join(model_dir, 'requirements.txt'), 'w') as f: f.write("scikit-learn\nxgboost\njoblib\n")