FastAPI microservice wrapping ByteDance/Dolphin-v2 (Qwen2.5-VL-3B base) for structured document extraction. Exposes POST /extract and GET /health. Maps Dolphin's 21 element types to cf-core's 7-type canonical schema. Services: cf-text /extract, /health Env vars: CF_DOCUVISION_MODEL, CF_DOCUVISION_DEVICE, CF_DOCUVISION_PORT GPU: 8GB+ VRAM required for Dolphin-v2; CPU fallback available but very slow.
8 lines
137 B
Text
8 lines
137 B
Text
fastapi>=0.110
|
|
uvicorn[standard]>=0.29
|
|
pydantic>=2.0
|
|
torch>=2.0
|
|
transformers>=4.40
|
|
accelerate>=0.27
|
|
Pillow>=10.0
|
|
python-multipart>=0.0.9
|