AnseMin commited on
Commit
87e9b54
·
1 Parent(s): 4523ddf

Error: Error processing document with GOT-OCR (ZeroGPU): Numpy is not available

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -4
  2. setup.sh +1 -1
requirements.txt CHANGED
@@ -2,7 +2,7 @@
2
  gradio==5.14.0
3
  markdown==3.7
4
  Pillow>=9.0.0,<11.0.0
5
- numpy>=1.21.0
6
 
7
  # Image processing
8
  opencv-python-headless>=4.5.0 # Headless version for server environments
@@ -14,9 +14,6 @@ pydantic==2.7.1
14
  # Gemini API client
15
  google-genai>=0.1.0
16
 
17
- # NumPy is required by torch and other libraries
18
- numpy>=1.24.0 # Added explicit dependency with higher version
19
-
20
  # GOT-OCR dependencies (as specified in documentation)
21
  torch==2.0.1
22
  torchvision==0.15.2
 
2
  gradio==5.14.0
3
  markdown==3.7
4
  Pillow>=9.0.0,<11.0.0
5
+ numpy
6
 
7
  # Image processing
8
  opencv-python-headless>=4.5.0 # Headless version for server environments
 
14
  # Gemini API client
15
  google-genai>=0.1.0
16
 
 
 
 
17
  # GOT-OCR dependencies (as specified in documentation)
18
  torch==2.0.1
19
  torchvision==0.15.2
setup.sh CHANGED
@@ -20,7 +20,7 @@ fi
20
 
21
  # Install NumPy first as it's required by many other packages
22
  echo "Installing NumPy..."
23
- pip install -q -U numpy>=1.24.0
24
  echo "NumPy installed successfully"
25
 
26
  # Install Python dependencies
 
20
 
21
  # Install NumPy first as it's required by many other packages
22
  echo "Installing NumPy..."
23
+ pip install -q -U numpy --no-cache-dir
24
  echo "NumPy installed successfully"
25
 
26
  # Install Python dependencies