admin commited on
Commit
ef9fd49
·
1 Parent(s): f5fc8a7

fix sleeping not found

Browse files
Files changed (1) hide show
  1. modules/activate.py +1 -1
modules/activate.py CHANGED
@@ -13,7 +13,7 @@ from utils import HF_DOMAIN, HEADER, MS_HEADER, TIMEOUT, MS_DOMAIN, DELAY, USERS
13
  def get_space_status(repo_id: str):
14
  response: list = requests.get(
15
  url=f"{HF_DOMAIN}/api/spaces/semantic-search",
16
- params={"q": repo_id},
17
  headers=HEADER,
18
  timeout=TIMEOUT,
19
  ).json()
 
13
  def get_space_status(repo_id: str):
14
  response: list = requests.get(
15
  url=f"{HF_DOMAIN}/api/spaces/semantic-search",
16
+ params={"q": repo_id, "includeNonRunning": "true"},
17
  headers=HEADER,
18
  timeout=TIMEOUT,
19
  ).json()