Spaces:
Running
Running
admin
commited on
Commit
·
5d2bc12
1
Parent(s):
0fe1dad
rm tqdm in restart
Browse files- modules/restart.py +2 -3
modules/restart.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import requests
|
2 |
-
from tqdm import tqdm
|
3 |
from modules.smtp import send_email
|
4 |
from utils import HF_DOMAIN, MS_DOMAIN, HF_HEADER, MS_HEADER, TIMEOUT, REPOS
|
5 |
|
@@ -27,9 +26,9 @@ def restart_private_space(repo: str):
|
|
27 |
def restart_repos():
|
28 |
if REPOS:
|
29 |
repos = REPOS.split(";")
|
30 |
-
for repo in
|
31 |
private_repo = repo.strip()
|
32 |
-
print(f"Restarting {private_repo}...")
|
33 |
restart_private_studio(private_repo)
|
34 |
restart_private_space(private_repo)
|
35 |
|
|
|
1 |
import requests
|
|
|
2 |
from modules.smtp import send_email
|
3 |
from utils import HF_DOMAIN, MS_DOMAIN, HF_HEADER, MS_HEADER, TIMEOUT, REPOS
|
4 |
|
|
|
26 |
def restart_repos():
|
27 |
if REPOS:
|
28 |
repos = REPOS.split(";")
|
29 |
+
for repo in repos:
|
30 |
private_repo = repo.strip()
|
31 |
+
print(f"Restarting {private_repo} space & studio...")
|
32 |
restart_private_studio(private_repo)
|
33 |
restart_private_space(private_repo)
|
34 |
|