Python Gradio Space stuck in "restarting"

Made a tiny mod in app..py, commited and space is stuck in “restarting”. Did the factory rebuild and it completed and now stuck in restarting. The only log entry is:

===== Application Startup at 2026-03-01 15:04:32 =====

This identical app.py code runs fine in Gradio on my PC in VS2022.

Edit:

After a few hours, doing a manual restart (in settings) got it running.

1 Like

This is a known issue with Gradio Spaces. Check for infinite loops in initialization, try adding timeout parameter, or use factory reset option.

1 Like