File size: 263 Bytes
7d141af
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from huggingface_hub import upload_file

repo_id = "Mehardeep7/transformer-attention-model"
model_path = "opus_books_weights/tmodel_30.pt"

upload_file(
    path_or_fileobj=model_path,
    path_in_repo="tmodel_30.pt",
    repo_id=repo_id,
    repo_type="model"
)