Spaces:
Running
Running
Create setup.sh
Browse files
setup.sh
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
echo "Updating system package list..."
|
2 |
+
sudo apt-get update
|
3 |
+
|
4 |
+
echo "Installing Tesseract OCR and Poppler utilities..."
|
5 |
+
sudo apt-get install -y tesseract-ocr tesseract-ocr-guj poppler-utils
|
6 |
+
|
7 |
+
if ! command -v python3 &>/dev/null; then
|
8 |
+
echo "Python3 is not installed. Installing Python3..."
|
9 |
+
sudo apt-get install -y python3 python3-pip
|
10 |
+
fi
|
11 |
+
|
12 |
+
echo "Installing Python dependencies..."
|
13 |
+
pip install -r requirements.txt
|
14 |
+
|
15 |
+
echo "Setup complete!"
|