Gradio intermittently unresponsive on Free Space

Hi,

I have a free space (https://huggingface.co/spaces/LewPerren/windsurf_search) that works consistently well on the standard user interface. I am also calling the space using the Gradio API, but unfortunately the response is intermittent. On some occasions it responds consistently in seconds, on others it just hangs. This is not a cold boot issue as the standard UI responds instantly.

Are others experiencing such inconsistency, and can anyone suggest a solution. Would upgrading help?

Thanks.

Lew

Hi,

I will answer my question myself in case it helps other developers. I have realised that the issue is not with the response from the Hugging Face Space, rather my web app was becoming unresponsive after it was left dormant for a while. A direct call using Colab and Gradio is almost always a successful.

I hope this helps someone who faces a similar problem.

Best

Lew