Unexpected delay while building Gradio server

When I create a private space using the free hardware setting, and then try to restart it after it goes into sleep mode, it stays in the “BUILDING” state for a very long time.
Is there any way to reduce or avoid this delay?

  1. One idea I had was to upgrade the hardware spec so that the space doesn’t go to sleep at all. Is this possible?
  2. If I subscribe to Pro mode, do I get priority in the building queue?

I think there may be a bug in Spaces’ sleep mode…

2

Maybe no.

1

It may be possible to configure this via Python, regardless of whether it is paid or free.

Put your Space to sleep after 1h of inactivity
api.set_space_sleep_time(repo_id=repo_id, sleep_time=3600)