Hugging Face Space Keeps Using an Old Commit Despite Redeploys

Martim-Ramos-Neural
Sat, 08 Feb 2025 12:47:47 +0000

Description

I’m running a FastAPI app in a Docker Space on Hugging Face, and I’m experiencing an issue where my Space keeps using an old commit, even after pushing new commits and triggering a redeploy.

Steps Taken

1. I have committed and pushed multiple updates:

git add .
git commit -m "Trigger redeploy"
git push origin main

2. I even removed all remote files and pushed a fresh commit:

git rm -r *
git commit -m "Remove all remote files"
git push origin main

3. Checked my commit history, and the latest commit is correct:

git log --oneline -n 5

4. Triggered a Factory Rebuild in my Hugging Face Space.

5. Despite all this, my Space still picks an old version of my repo when it builds.

Possible Causes?

Question

Has anyone faced this before? How can I force my Hugging Face Space to rebuild with the latest commit?

Thanks in advance for any help!