Rlab / on_startup.sh
robocan's picture
Update on_startup.sh
9c7a4df
raw
history blame
966 Bytes
#!/bin/bash
sudo pip install -U jupyter
pip install opencv-python
pip install pdf2image
sudo apt install tesseract-ocr
sudo apt install libtesseract-dev
pip install pytesseract
sudo apt update && apt upgrade
sudo apt-get update && apt-get install libgl1
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
sudo apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
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"
apt install wget
pip install tensorflow
pip install sentencepiece
pip install keras_nlp
pip install -U scikit-learn scipy matplotlib
pip install pandas
pip install huggingface_hub
# Write some commands here that will run on root user before startup.
# For example, to clone transformers and install it in dev mode:
# git clone https://github.com/huggingface/transformers.git
# cd transformers && pip install -e ".[dev]"