Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down