Spaces:
Runtime error
Runtime error
| 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!" | |