Download push_all_to_hub.py from TrunkSam/support-emotion-classifier: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/TrunkSam/support-emotion-classifier/resolve/main/push_all_to_hub.py
- Command line
-
hf download hf://TrunkSam/support-emotion-classifier/push_all_to_hub.py
-
curl -L -o push_all_to_hub.py https://huggingface.co/TrunkSam/support-emotion-classifier/resolve/main/push_all_to_hub.py
260 Bytes
| from huggingface_hub import HfApi | |
| api = HfApi() | |
| api.upload_folder( | |
| folder_path=".", | |
| repo_id="TrunkSam/support-emotion-classifier", | |
| repo_type="model", | |
| allow_patterns=["*.py", "*.md", "requirements.txt", "*.ipynb"], | |
| ) | |
| print("Done.") |