AnseMin commited on
Commit
7869899
·
1 Parent(s): a433cbc

solving version independencies

Browse files
Files changed (3) hide show
  1. build.sh +1 -1
  2. requirements.txt +3 -3
  3. setup.sh +1 -1
build.sh CHANGED
@@ -80,7 +80,7 @@ echo "Google Gemini API client installed successfully"
80
 
81
  # Install GOT-OCR dependencies
82
  echo "Installing GOT-OCR dependencies..."
83
- pip install -q -U torch==2.0.1 torchvision==0.15.2 transformers==4.47.0 tiktoken==0.6.0 verovio==4.3.1 accelerate==0.28.0 safetensors==0.4.0
84
  echo "GOT-OCR dependencies installed successfully"
85
 
86
  # Install Python dependencies
 
80
 
81
  # Install GOT-OCR dependencies
82
  echo "Installing GOT-OCR dependencies..."
83
+ pip install -q -U torch==2.0.1 torchvision==0.15.2 transformers==4.37.2 tiktoken==0.6.0 verovio==4.3.1 accelerate==0.28.0 safetensors==0.4.1
84
  echo "GOT-OCR dependencies installed successfully"
85
 
86
  # Install Python dependencies
requirements.txt CHANGED
@@ -6,7 +6,7 @@ multiprocess==0.70.16
6
  pipdeptree==2.25.0
7
  pytesseract==0.3.13
8
  semchunk==2.2.2
9
- Pillow>=9.0.0
10
  numpy>=1.21.0
11
  # Tesseract dependencies
12
  tesseract==0.1.3
@@ -25,9 +25,9 @@ pydantic==2.7.1
25
  # GOT-OCR dependencies
26
  torch>=2.0.1
27
  torchvision>=0.15.2
28
- transformers>=4.37.2,<4.48.0 # Pin to a compatible version for GOT-OCR
29
  tiktoken>=0.6.0
30
  verovio>=4.3.1
31
  accelerate>=0.28.0
32
- safetensors>=0.4.1 # Updated to be compatible with transformers 4.47.0
33
  packaging>=21.0 # For version comparison
 
6
  pipdeptree==2.25.0
7
  pytesseract==0.3.13
8
  semchunk==2.2.2
9
+ Pillow>=9.0.0,<11.0.0
10
  numpy>=1.21.0
11
  # Tesseract dependencies
12
  tesseract==0.1.3
 
25
  # GOT-OCR dependencies
26
  torch>=2.0.1
27
  torchvision>=0.15.2
28
+ transformers==4.37.2 # Pin to a specific version that works with safetensors 0.4.1
29
  tiktoken>=0.6.0
30
  verovio>=4.3.1
31
  accelerate>=0.28.0
32
+ safetensors==0.4.1 # Match the minimum version required by transformers
33
  packaging>=21.0 # For version comparison
setup.sh CHANGED
@@ -20,7 +20,7 @@ echo "Python dependencies installed successfully"
20
 
21
  # Install GOT-OCR dependencies
22
  echo "Installing GOT-OCR dependencies..."
23
- pip install -q -U torch==2.0.1 torchvision==0.15.2 transformers==4.47.0 tiktoken==0.6.0 verovio==4.3.1 accelerate==0.28.0 safetensors==0.4.0
24
  echo "GOT-OCR dependencies installed successfully"
25
 
26
  # Install tesserocr with pip
 
20
 
21
  # Install GOT-OCR dependencies
22
  echo "Installing GOT-OCR dependencies..."
23
+ pip install -q -U torch==2.0.1 torchvision==0.15.2 transformers==4.37.2 tiktoken==0.6.0 verovio==4.3.1 accelerate==0.28.0 safetensors==0.4.1
24
  echo "GOT-OCR dependencies installed successfully"
25
 
26
  # Install tesserocr with pip