Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add reboot_space
  • Loading branch information
daavoo committed Jan 17, 2025
commit c78ff25c38cb1f7146e998a015b8d3ff9c8e86d4
11 changes: 11 additions & 0 deletions demo/reboot_space.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import os

from huggingface_hub import HfApi

if __name__ == "__main__":
api = HfApi()
api.restart_space(
repo_id="mozilla-ai/structured-qa",
token=os.getenv("HF_TOKEN"),
factory_reboot=True,
)
26 changes: 0 additions & 26 deletions demo/run.sh

This file was deleted.