File size: 260 Bytes
2c3b1dc
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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.")