zhoudanxie
commited on
Commit
•
e9b4c84
1
Parent(s):
91edf26
Add notes
Browse files- restart.py +6 -1
restart.py
CHANGED
@@ -1,9 +1,14 @@
|
|
|
|
|
|
1 |
# from huggingface_hub import login
|
2 |
# login()
|
3 |
|
|
|
|
|
4 |
from huggingface_hub import HfApi
|
5 |
repo_id = "regulatorystudies/cra-window-rules"
|
6 |
api = HfApi()
|
7 |
|
8 |
#%% Restart
|
9 |
-
api.restart_space(repo_id=repo_id)
|
|
|
|
1 |
+
#-------------------------Restart the Hugging Face Space-------------------------------#
|
2 |
+
|
3 |
# from huggingface_hub import login
|
4 |
# login()
|
5 |
|
6 |
+
print("Daily restart initiated...")
|
7 |
+
|
8 |
from huggingface_hub import HfApi
|
9 |
repo_id = "regulatorystudies/cra-window-rules"
|
10 |
api = HfApi()
|
11 |
|
12 |
#%% Restart
|
13 |
+
api.restart_space(repo_id=repo_id)
|
14 |
+
print("Daily restart completed.")
|