# Runtime dependencies for the Hugging Face Space. # # The previous version pulled sentence-transformers, transformers, tokenizers, # torch and faiss-cpu -- roughly 2 GB -- to compute ingredient similarity. # Open Food Facts already canonicalises ingredients into tags, so set overlap # replaces that entirely. See nutriweb/reco/similarity.py. # Pinned, and kept identical to `sdk_version` in README.md -- Hugging Face # Spaces installs the version declared there, not this one. When the two # drifted (1.40 on the Space, 1.61 locally) the app crashed on st.button(width=), # an argument that only exists in the newer release. tests/test_deploy.py # fails if they diverge again. streamlit==1.61.1 duckdb>=1.1 pandas>=2.2 numpy>=2.0 plotly>=6.0 huggingface_hub>=0.30 pymongo>=4.12 # optional: account storage, app runs without it bcrypt>=4.0 # password hashing (passlib is unmaintained and breaks on bcrypt 5)