Vishakaraj's picture
Upload folder using huggingface_hub
3fad000
raw
history blame
348 Bytes
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",
)