Created
March 10, 2024 12:36
-
-
Save pszemraj/174f5773f92925a8219048fd720d8690 to your computer and use it in GitHub Desktop.
upload to hub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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