File size: 563 Bytes
44e8d24
 
60ff769
5885b38
 
60ff769
 
5885b38
 
 
 
60ff769
 
 
 
 
 
 
 
 
 
5885b38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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!"