Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.12.0
Project Instructions
Python Environment
- Always use
uvto run Python scripts and manage dependencies — never usepiporpythondirectly - Run scripts with
uv run python script.pyinstead ofpython script.py - Install packages with
uv add package-nameinstead ofpip install - To run one-off commands:
uv run <command> - The project uses
uvfor virtual environment management; do not create venvs manually withpython -m venv
Common Commands
uv run python script.py— run a scriptuv add <package>— add a dependencyuv sync— install all dependencies from lockfileuv run pytest— run tests
Hugging Face Deployment
.stlfiles must be tracked by Git LFS (*.stl filter=lfsin.gitattributes)- Verify Git LFS is available before push:
git lfs version - Confirm tracked LFS files:
git lfs ls-files - Standard push sequence:
git push origin mainthengit push hf-space main - If Hugging Face rejects binaries, re-check
.gitattributesand LFS status before retrying git lfs migraterewrites history; only use it intentionally and coordinate with collaborators first