diff --git a/README.md b/README.md index 84ef313..6668749 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,9 @@ docker run -d \ ### 🍎 Mac (Apple Silicon) ```bash +# Make sure Conda (or Miniconda is installed first) +# make sure Node is also installed first + # Clone and setup git clone https://github.com/neosun100/DeepSeek-OCR-WebUI.git cd DeepSeek-OCR-WebUI @@ -226,6 +229,17 @@ conda activate deepseek-ocr # Install dependencies pip install -r requirements-mac.txt +conda install pytorch torchvision torchaudio -c pytorch-nightly +pip install "accelerate>=0.26.0" + +# To resolve Error 500 on Webui where pytorch needs MPS fallback +export PYTORCH_ENABLE_MPS_FALLBACK=1 + +# Build the Web UI next +cd frontend/ +npm i +npm build +cd .. # Start service ./start.sh @@ -243,7 +257,42 @@ pip install -r requirements.txt --- -## 🔌 API & Integration +## 🗑️ Uninstall + +### macOS Apple Silicon + +```bash +# 1. Remove Conda environment +conda deactivate +conda remove -n deepseek-ocr --all + +# 2. Uninstall Python packages (if installed in system Python) +pip uninstall torch torchvision torchaudio accelerate -y +pip uninstall -r requirements-mac.txt -y + +# 3. Clear Node.js frontend build +cd frontend +rm -rf node_modules +rm -rf dist +cd .. + +# 4. Delete cloned repository +cd .. +rm -rf DeepSeek-OCR-WebUI + +# 5. Clear Hugging Face cache (optional, ~6.7 GB model weights) +rm -rf ~/.cache/huggingface/hub/models--deepseek* +``` + +✅ **After these steps:** +- No `deepseek-ocr` conda environment remains +- No Python packages from the project remain +- No Node.js frontend build remains +- No cached model weights remain (if you cleared Hugging Face cache) + +--- + +## �🔌 API & Integration ### REST API