Logging in to HF Git repository from the code

i think you need to setup your ssh credentials first

if you don’t want to setup your ssh credentials, haggingface offers other tools that you can use for downloading repos or files and uploading them in python :

  • download :
    • entire repo download : snapshot_download
    • single file download : hf_hub_download
  • upload :
    • entire folder : upload_folder
    • single file : upload_file
1 Like