robocan commited on
Commit
b3a15d3
·
1 Parent(s): 7df2765

Update on_startup.sh

Browse files
Files changed (1) hide show
  1. on_startup.sh +6 -15
on_startup.sh CHANGED
@@ -1,22 +1,13 @@
1
  #!/bin/bash
2
  sudo pip install -U jupyter
 
3
  conda install -c conda-forge tesseract
4
  pip install -r https://raw.githubusercontent.com/stafazzoli/FarsiOCR/master/requirements.txt
5
- sudo apt update && apt upgrade
6
  sudo apt-get update && apt-get install libgl1
7
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
8
  sudo apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
9
- sudo mkdir -p /usr/local/share/tessdata && wget -O /usr/local/share/tessdata/fas.traineddata "https://github.com/tesseract-ocr/tessdata/raw/main/fas.traineddata"
10
- git clone https://github.com/Aliync/FarsiOCR.git
11
- sudo python FarsiOCR/src/ocr.py
12
- apt install wget
13
- pip install tensorflow
14
- pip install sentencepiece
15
- pip install keras_nlp
16
- pip install -U scikit-learn scipy matplotlib
17
- pip install pandas
18
- pip install huggingface_hub
19
- # Write some commands here that will run on root user before startup.
20
- # For example, to clone transformers and install it in dev mode:
21
- # git clone https://github.com/huggingface/transformers.git
22
- # cd transformers && pip install -e ".[dev]"
 
1
  #!/bin/bash
2
  sudo pip install -U jupyter
3
+ apt update && apt upgrade
4
  conda install -c conda-forge tesseract
5
  pip install -r https://raw.githubusercontent.com/stafazzoli/FarsiOCR/master/requirements.txt
 
6
  sudo apt-get update && apt-get install libgl1
7
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
8
  sudo apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
9
+ conda install -c conda-forge poppler -y
10
+ sudo conda install -c conda-forge poppler -y
11
+ sudo apt-get install -y poppler-utils
12
+ apt-get install -y poppler-utils
13
+ apt install wget