Model Loader: - Update model_loader.py with complete dots.ocr loading code - Proper device detection (CUDA/CPU/MPS) with fallback - Memory optimization (low_cpu_mem_usage) - Better error handling and logging - Support for local model paths and HF Hub Docker: - Multi-stage Dockerfile (CPU/CUDA builds) - docker-compose.yml for parser-service - .dockerignore for clean builds - Model cache volume for persistence Configuration: - Support DOTS_OCR_MODEL_ID and DEVICE env vars (backward compatible) - Better defaults and environment variable handling Deployment: - Add DEPLOYMENT.md with detailed instructions - Local deployment (venv) - Docker Compose deployment - Ollama runtime setup - Troubleshooting guide Integration: - Add parser-service to main docker-compose.yml - Configure volumes and networks - Health checks and dependencies
26 lines
181 B
Plaintext
26 lines
181 B
Plaintext
__pycache__
|
|
*.pyc
|
|
*.pyo
|
|
*.pyd
|
|
.Python
|
|
*.so
|
|
*.egg
|
|
*.egg-info
|
|
dist
|
|
build
|
|
.env
|
|
.venv
|
|
venv/
|
|
ENV/
|
|
.pytest_cache
|
|
.coverage
|
|
htmlcov/
|
|
*.log
|
|
.DS_Store
|
|
.git
|
|
.gitignore
|
|
README.md
|
|
tests/
|
|
*.md
|
|
|