Skip to content

Instantly share code, notes, and snippets.

@pszemraj
Created March 10, 2024 12:36
Show Gist options
  • Save pszemraj/174f5773f92925a8219048fd720d8690 to your computer and use it in GitHub Desktop.
Save pszemraj/174f5773f92925a8219048fd720d8690 to your computer and use it in GitHub Desktop.
upload to hub
"""
this script will upload a folder to Hugging Face Hub
python upload_folder.py --help
pip install fire huggingface-hub
"""
import logging
import fire
from huggingface_hub import upload_folder
logging.basicConfig(
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"
)
if __name__ == "__main__":
fire.Fire(upload_folder)
logging.info("Done!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment