terryyz commited on
Commit
56f59ad
1 Parent(s): ab1a0c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -261,6 +261,8 @@ def restart_space():
261
  try:
262
  # Now restart the space
263
  API.restart_space(repo_id=REPO_ID, token=HF_TOKEN)
 
 
264
  logging.info("Space restarted successfully.")
265
  except Exception as e:
266
  logging.error(f"Failed to restart space: {e}")
 
261
  try:
262
  # Now restart the space
263
  API.restart_space(repo_id=REPO_ID, token=HF_TOKEN)
264
+ scheduler.start(split="complete", subset="full", samples="", check_gt_only=True)
265
+ scheduler.start(split="complete", subset="hard", samples="", check_gt_only=True)
266
  logging.info("Space restarted successfully.")
267
  except Exception as e:
268
  logging.error(f"Failed to restart space: {e}")