zhoudanxie
commited on
Commit
•
9b8dd92
1
Parent(s):
79c222e
Create restart.py
Browse files- restart_hf_space/restart.py +10 -0
restart_hf_space/restart.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from huggingface_hub import login
|
2 |
+
login()
|
3 |
+
|
4 |
+
#%%
|
5 |
+
from huggingface_hub import HfApi
|
6 |
+
repo_id = "regulatorystudies/cra-window-rules"
|
7 |
+
api = HfApi()
|
8 |
+
|
9 |
+
#%% Restart
|
10 |
+
api.restart_space(repo_id=repo_id)
|