404 Error with Flask Space

Hello Hugging Face Community,

I’m experiencing a persistent 404 error with my Space (DreamwalkerAI/Alita-Heimat-Final) when accessing the URL https://dreamwalkerai-alita-heimat-final.hf.space/. The Space runs locally on port 7860 (Flask app), but external API requests (e.g., POST to /) return a 404 page. I suspect it’s not configured as a Flask app correctly.

Details:

  • Space Name: DreamwalkerAI/Alita-Heimat-Final

  • Hardware: CPU basic (2 vCPU, 16 GB RAM)

  • Logs: Flask runs locally (* Running on http://127.0.0.1:7860), but external requests fail.

  • Test Output: Consistent 404 with HTML response from Hugging Face.

  • Token: alita-push-token (hf_…AGsC, fine-grained, used 6 hours ago).

  • Files: All local on my laptop (app.py, mini_ki_v3.py, etc.).

. Can anyone help me configure the Space as a Flask app or suggest a fix? I’d appreciate any guidance!

Thanks,

Daniel (DreamwalkerAI)

1 Like

The ports open to the outside in Hugging Face Spaces are quite limited. If necessary, I recommend submitting a request. website@huggingface.co
Open port for space to connect to PostgreSQL - #9 by deepkyu

1 Like