pxiaoer commited on
Commit
27479e5
1 Parent(s): 07aaba9
Files changed (2) hide show
  1. app.py +1 -1
  2. update_scheduler.py +1 -1
app.py CHANGED
@@ -31,4 +31,4 @@ with gr.Blocks(css="style.css") as demo:
31
  )
32
 
33
  if __name__ == "__main__":
34
- demo.queue(api_open=False).launch()
 
31
  )
32
 
33
  if __name__ == "__main__":
34
+ demo.queue(api_open=False).launch(debug=True)
update_scheduler.py CHANGED
@@ -14,7 +14,7 @@ class SpaceRestarter:
14
  def __init__(self, space_id: str):
15
  self.api = HfApi()
16
  if self.api.get_token_permission() != "write":
17
- raise ValueError("The HF token must have write permission.")
18
  try:
19
  self.api.space_info(repo_id=space_id)
20
  except RepositoryNotFoundError:
 
14
  def __init__(self, space_id: str):
15
  self.api = HfApi()
16
  if self.api.get_token_permission() != "write":
17
+ raise ValueError(f"The HF token must have write permission. space_id: {space_id}")
18
  try:
19
  self.api.space_info(repo_id=space_id)
20
  except RepositoryNotFoundError: