TempCompass / tmp.py
lyx97's picture
commit files to HF hub
dd3b997
raw
history blame
321 Bytes
from huggingface_hub import Repository, HfApi
import os
hf_token = os.getenv('HF_TOKEN')
api = HfApi(token=hf_token)
repo = Repository(
local_dir=".",
clone_from="https://huggingface.co/spaces/lyx97/TempCompass",
use_auth_token=hf_token,
)
repo.git_add('app.py')
repo.git_commit('update')
repo.push_to_hub()