cra-window-rules / restart.py
zhoudanxie's picture
Add notes
e9b4c84
raw
history blame contribute delete
350 Bytes
#-------------------------Restart the Hugging Face Space-------------------------------#
# from huggingface_hub import login
# login()
print("Daily restart initiated...")
from huggingface_hub import HfApi
repo_id = "regulatorystudies/cra-window-rules"
api = HfApi()
#%% Restart
api.restart_space(repo_id=repo_id)
print("Daily restart completed.")