Spaces:
Runtime error
Runtime error
Download install.sh from cloudaiRambo/cloudairambo: direct link, hf CLI and curl.
- Browser
- Download file 11.6 kB
-
https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/install.sh
- Command line
-
hf download hf://spaces/cloudaiRambo/cloudairambo/install.sh
-
curl -L -o install.sh https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/install.sh
11.6 kB
| pip install fastapi-admin bcrypt python-jose | |
| sudo apt update | |
| sudo apt install ffmpeg -y | |
| sudo apt install ghostscript -y | |
| sudo apt install imagemagick -y | |
| pip install pydantic-settings | |
| pip install fastapi uvicorn sqlalchemy psycopg2-binary pydantic python-dotenv fastapi-admin bcrypt python-jose | |
| pip install sqlalchemy psycopg2-binary | |
| pip install fastapi uvicorn python-dotenv | |
| pip install pillow pikepdf wand python-magic ffmpeg-python pydub | |
| pip install chardet unidecode | |
| sudo apt install p7zip-full p7zip-rar -y | |
| sudo apt install pandoc -y | |
| chmod +x cleanup.py | |
| # system | |
| sudo apt update | |
| sudo apt install imagemagick -y # ensures 'magick' or 'convert' binary exists | |
| # python libs | |
| pip install pillow piexif pdf2image | |
| # (pdf2image used earlier; kept if needed) | |
| # system | |
| sudo apt update | |
| sudo apt install ffmpeg sox -y | |
| # python (inside your venv) | |
| pip install ffmpeg-python pydub numpy soundfile librosa matplotlib aubio faster-whisper demucs TTS | |
| # extras (optional, help) | |
| pip install scipy matplotlib python-soundfile | |
| sudo apt update | |
| sudo apt install ffmpeg sox ghostscript imagemagick tesseract-ocr poppler-utils -y | |
| pip install torch --index-url https://download.pytorch.org/whl/cu121 | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| sudo apt update | |
| sudo apt install -y ghostscript poppler-utils imagemagick tesseract-ocr | |
| pip install pikepdf pymupdf ocrmypdf pdf2image reportlab pillow python-magic | |
| sudo apt update | |
| sudo apt install -y ffmpeg libopencv-dev ffmpeg libavcodec-extra | |
| # For stabilization (optional): libvidstab | |
| # On Ubuntu you might need to build ffmpeg with libvidstab or use a custom build/distribution. | |
| # Python packages (inside your venv) | |
| pip install ffmpeg-python moviepy opencv-python numpy scikit-image | |
| sudo mkdir -p /opt/realesrgan-models | |
| cd /opt/realesrgan-models | |
| # Example model files (replace URLs with actual ones) | |
| wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.3.0/realesrgan-x4plus.param | |
| wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.3.0/realesrgan-x4plus.bin | |
| # Or use an anime/video-specific model if available: realesr-animevideov3-x2.param/.bin etc. | |
| pip install Pillow pymupdf markdown python-magic | |
| # System (already likely installed): poppler-utils (for pdf2image if used), but pdf->text uses PyMuPDF | |
| pip install qrcode[pil] python-barcode reportlab pillow | |
| pip install pygments sqlparse xmltodict requests | |
| python3.10 -m venv ttsenv | |
| source ttsenv/bin/activate | |
| #pip install TTS | |
| pip install pyttsx3 | |
| sudo apt update | |
| sudo apt install python3.10 python3.10-venv python3.10-dev | |
| python3.10 -m venv venv | |
| source venv/bin/activate | |
| python --version | |
| pip install pydantic-settings | |
| pip install pikepdf==5.0.1 | |
| sudo apt update | |
| sudo apt install -y libqpdf-dev | |
| pip install pikepdf==5.0.1 | |
| pip install PyMuPDF pikepdf | |
| pip install "PyMuPDF==1.23.4" "pikepdf==5.0.1" | |
| sudo apt update | |
| sudo apt install -y libqpdf-dev | |
| pip install pikepdf | |
| pip install reportlab | |
| sudo apt install libfreetype6-dev libjpeg-dev | |
| pip install reportlab | |
| pip install pdf2image pillow pikepdf pymupdf reportlab ffmpeg-python moviepy numpy scipy librosa soundfile python-multipart | |
| sudo apt install poppler-utils | |
| sudo apt install ffmpeg poppler-utils -y | |
| pip install onnxruntime pillow numpy | |
| pip install gdown | |
| pip install realesrgan | |
| pip install basicsr | |
| pip install realesrgan[full] | |
| pip install realesrgan basicsr torch torchvision | |
| pip install torch==2.2.2 torchvision==0.17.2 --index-url https://download.pytorch.org/whl/cpu | |
| pip install realesrgan basicsr | |
| pip uninstall -y torch torchvision | |
| pip install torch==2.2.2 torchvision==0.17.2 --index-url https://download.pytorch.org/whl/cpu | |
| pip install realesrgan basicsr | |
| pip install torch==1.13.1 torchvision==0.14.1 | |
| pip install realesrgan basicsr | |
| sudo apt install python3.10 python3.10-venv | |
| python3.10 -m venv venv310 | |
| source venv310/bin/activate | |
| pip install torch==1.13.1+cpu torchvision==0.14.1+cpu --index-url https://download.pytorch.org/whl/cpu | |
| pip install realesrgan basicsr | |
| sudo apt install libvulkan1 vulkan-tools | |
| pip install \ | |
| pdf2image pillow pikepdf pymupdf reportlab \ | |
| ffmpeg-python moviepy numpy scipy librosa soundfile \ | |
| opencv-python pandas python-magic filetype \ | |
| python-multipart | |
| sudo apt update | |
| sudo apt install -y ocrmypdf tesseract-ocr tesseract-ocr-eng ghostscript qpdf | |
| pip install ocrmypdf[all] | |
| pip install ocrmypdf --no-binary :all: | |
| pip install pillow opencv-python piexif numpy | |
| pip install piexif | |
| sudo apt install ffmpeg -y | |
| pip install pydub | |
| pip install moviepy | |
| pip install --upgrade --force-reinstall moviepy | |
| sudo apt install ffmpeg -y | |
| pip install imageio imageio-ffmpeg | |
| pip install moviepy imageio imageio-ffmpeg numpy | |
| sudo apt install ffmpeg -y | |
| pip uninstall moviepy -y | |
| pip uninstall imageio imageio-ffmpeg -y | |
| pip install moviepy==1.0.3 imageio==2.31.1 imageio-ffmpeg==0.4.9 numpy | |
| pip cache purge | |
| sudo apt install ffmpeg -y | |
| rm -rf venv/lib/python3.9/site-packages/moviepy | |
| rm -rf venv/lib/python3.9/site-packages/moviepy-* | |
| pip install moviepy==1.0.3 | |
| pip install markdown | |
| pip install qrcode[pil] | |
| pip install pillow | |
| pip install python-barcode | |
| pip install sqlparse | |
| pip install xmltodict | |
| pip install psycopg2-binary | |
| python -c "import fastapi, pydantic; print(fastapi.__version__, pydantic.__version__)" | |
| pip install --upgrade fastapi starlette | |
| pip install PyJWT | |
| pip install PyJWT[crypto] | |
| # If you haven't already installed the PostgreSQL driver | |
| pip install psycopg2-binary | |
| pip install itsdangerous | |
| pip install starlette-admini | |
| pip install pydantic-settings python-dotenv | |
| pip install fastapi-admin tortoise-orm aiofiles python-multipart jinja2 | |
| pip install fastapi-admin tortoise-orm aiofiles python-multipart jinja2 | |
| sudo apt install redis | |
| sudo service redis start | |
| pip uninstall starlette-admin | |
| # then remove imports and admin-specific files you added earlier (core/admin.py earlier version) | |
| pip install sqladmin sqlalchemy psycopg2-binary python-multipart | |
| pip install sqladmin psycopg2-binary | |
| pip install sqladmin psycopg2-binary sqlalchemy | |
| pip install PyPDF2 | |
| pip install pytesseract | |
| sudo apt install tesseract-ocr | |
| python -m pip install fastapi uvicorn sqlalchemy alembic python-multipart itsdangerous email-validator jinja2 passlib[bcrypt] requests pydantic cryptography reportlab | |
| python -m pip install pydantic-settings | |
| python -m pip install psycopg2-binary | |
| pip uninstall onnxruntime torch realesrgan basicsr -y | |
| pip install super-image | |
| pip install pillow-heif | |
| pip install pillow pillow-heif cairosvg | |
| pip install cairosvg | |
| pip install pillow-heif | |
| pip install pillow | |
| npm install @mediapipe/tasks-vision | |
| npm install @tensorflow/tfjs @tensorflow-models/body-pix | |
| npm install @tensorflow/tfjs @tensorflow-models/body-pix | |
| pip install -r requirements.txt | |
| # or | |
| pip install Pillow reportlab | |
| pip install rawpy==0.25.1 | |
| pip install opencv-python | |
| pip install opencv-python-headless | |
| pip install fastapi uvicorn pillow numpy opencv-python rembg | |
| pip install onnxruntime-gpu | |
| pip install onnxruntime | |
| pip install fastapi uvicorn pillow numpy rembg opencv-python | |
| sudo apt install libwebp-dev | |
| pip install pillow fastapi uvicorn | |
| npm install -g prettier | |
| npm install prettier --save-dev | |
| npm install prettier prettier-plugin-standalone --save | |
| sudo apt update | |
| sudo apt install -y \ | |
| ffmpeg \ | |
| ghostscript \ | |
| imagemagick \ | |
| graphicsmagick \ | |
| mupdf \ | |
| poppler-utils \ | |
| pandoc \ | |
| p7zip-full \ | |
| unzip \ | |
| unrar \ | |
| libimage-exiftool-perl | |
| sudo apt install -y gdal-bin libgdal-dev | |
| sudo apt install -y freecad | |
| sudo apt install -y libreoffice | |
| pip install python-multipart | |
| pip install pypdf2 | |
| pip install python-docx | |
| pip install openpyxl | |
| pip install fastapi | |
| pip install uvicorn | |
| pip install pillow | |
| pip install pymupdf | |
| pip install pydub | |
| pip install ffmpeg-python | |
| pip install pandas pyarrow fastparquet | |
| pip install python-magic | |
| pip install aiofiles | |
| pip install --upgrade imageio imageio-ffmpeg | |
| pip install "setuptools<81" | |
| sudo apt install potrace | |
| sudo apt update | |
| sudo apt install ffmpeg -y | |
| pip install pydub | |
| pip install librosa soundfile matplotlib | |
| pip install openai-whisper | |
| # upgrade packaging tools first (recommended) | |
| python -m pip install --upgrade pip setuptools wheel | |
| # install numpy (required by whisper) | |
| python -m pip install numpy | |
| # (optional but often required) install/update whisper and its deps | |
| python -m pip install -U openai-whisper | |
| # If you plan to use PyTorch-backed whisper (recommended for performance), | |
| # install torch. For CPU-only builds use the CPU index: | |
| python -m pip install --index-url https://download.pytorch.org/whl/cpu torch | |
| # OR if you have CUDA and want GPU support, install the correct torch wheel from PyTorch site: | |
| # See https://pytorch.org/get-started/locally/ for the right command for your CUDA version. | |
| pip uninstall -y numpy | |
| pip install "numpy<2" | |
| pip install torch --index-url https://download.pytorch.org/whl/cpu | |
| pip install -U openai-whisper | |
| pip install "numpy<2" | |
| pip uninstall -y opencv-python opencv-python-headless | |
| pip install "opencv-python==4.7.0.72" | |
| pip install "opencv-python-headless==4.7.0.72" | |
| pip install --force-reinstall torch --index-url https://download.pytorch.org/whl/cpu | |
| pip install --force-reinstall openai-whisper | |
| pip install whisper | |
| pip install whisper | |
| pip freeze | |
| pip install torch==2.2.2 --index-url https://download.pytorch.org/whl/cpu | |
| pip install fastapi | |
| pip install uvicorn[standard] | |
| pip install python-multipart | |
| pip install pydantic | |
| pip install aiofiles | |
| pip install python-dotenv | |
| pip install psycopg2-binary | |
| pip install PyJWT | |
| pip install pillow | |
| pip install requests | |
| sudo apt install -y ffmpeg | |
| pip uninstall -y opencv-python opencv-python-headless moviepy numpy | |
| pip install numpy==1.26.4 | |
| pip install opencv-python==4.7.0.72 opencv-python-headless==4.7.0.72 | |
| pip install moviepy==1.0.3 | |
| pip install --upgrade pip | |
| pip install fastapi uvicorn | |
| pip install numpy==1.26.4 | |
| pip install opencv-python==4.7.0.72 | |
| pip install opencv-python-headless==4.7.0.72 | |
| pip install moviepy==1.0.3 | |
| pip install whisper | |
| pip install torch==2.2.2 --index-url https://download.pytorch.org/whl/cpu | |
| python -c "import fastapi; print('FASTAPI OK')" | |
| python -c "import cv2; print('CV2 OK')" | |
| python -c "import moviepy; print('MOVIEPY OK')" | |
| python -c "import whisper; print('WHISPER OK')" | |
| python -c "import torch; print('TORCH OK')" | |
| pip install faster-whisper | |
| pip install PyPDF2==3.0.1 | |
| pip install PyPDF2 | |
| pip install python-docx | |
| pip install python-docx==0.8.11 | |
| sudo apt-get install ghostscript | |
| pip install pikepdf | |
| sudo apt update | |
| sudo apt install handbrake-cli -y | |
| pip install fastapi uvicorn[standard] python-multipart ffmpeg-python | |
| pip install Flask flask-cors ffmpeg-normalize gunicorn | |
| pip install "fastapi[all]" python-multipart pydub numpy pyloudnorm | |
| sudo apt update | |
| sudo apt install -y qpdf ghostscript | |
| sudo apt install tesseract-ocr -y | |
| pip install pytesseract pymupdf pillow | |
| pip install markdown bleach | |
| pip install pillow pillow-heif pillow-avif-plugin cairosvg | |
| sudo apt install fonts-dejavu fonts-liberation ttf-mscorefonts-installer | |
| sudo apt install fonts-freefont-ttf fonts-lato | |
| pip install playwright | |
| playwright install chromium | |
| sudo apt install tesseract-ocr poppler-utils calibre | |
| pip install pytesseract pdf2image pillow | |
| sudo apt update | |
| sudo apt install gdal-bin | |
| sudo apt install poppler-utils | |
| sudo apt install openbabel | |
| sudo apt install ffmpeg | |
| pip install openai-whisper | |
| sudo apt install djvulibre-bin | |
| sudo apt install mupdf-tools | |
| sudo apt install graphicsmagick | |
| sudo apt update | |
| sudo apt install imagemagick | |
| sudo apt install potrace imagemagick | |
| cd ~/backend_copy | |
| source venv/bin/activate | |
| pip install pypdf | |
| sudo apt install tesseract-ocr | |
| sudo apt install tesseract-ocr-eng | |
| pip install pytesseract | |
| pip uninstall -y moviepy | |
| pip install "moviepy==1.0.3" | |
| pip install bleach | |
| pip install PyJWT | |
| pip install celery | |
| pip install redis | |