any-agent-demo / restart_space.py
github-actions[bot]
Sync with https://github.com/mozilla-ai/any-agent
d8bf033
raw
history blame contribute delete
231 Bytes
import os
from huggingface_hub import HfApi
if __name__ == "__main__":
api = HfApi()
api.restart_space(
repo_id="mozilla-ai/any-agent-demo",
token=os.getenv("HF_TOKEN"),
factory_reboot=True,
)