File size: 348 Bytes
3fad000
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from huggingface_hub import login
login()

from huggingface_hub import HfApi
api = HfApi()
api.upload_file(
    path_or_fileobj="/home/vishak66/.cache/torch/hub/checkpoints/dinov2_vitg14_ade20k_m2f.pth",
    path_in_repo="/home/user/data/dinov2_vitg14_ade20k_m2f.pth",
    repo_id="Vishakaraj/DinoV2_Semantic_Segmentation",
    repo_type="space",
)