Sakya85's picture
Update install.sh
5885b38 verified
Raw
History Blame Contribute Delete
563 Bytes
#!/bin/bash
set -e
echo "⚙️ Cleaning environment and forcing compatible dependency versions..."
pip install --no-cache-dir -U pip setuptools wheel
# Uninstall auto-installed incompatible packages
pip uninstall -y huggingface-hub transformers sentence-transformers || true
# Install locked versions
pip install --no-cache-dir \
"huggingface-hub==0.17.3" \
"transformers==4.35.2" \
"sentence-transformers==2.2.2" \
"torch==2.2.2" \
"pandas==2.2.3" \
"numpy==1.26.4" \
"flask==3.0.3" \
"gunicorn==21.2.0"
echo "✅ Dependency fix complete!"