Finalize local deployment config: CPU mode, persistent cache, port 8001

- docker-compose.yml: default TORCH_DEVICE=cpu, PORT=8001, named volumes
  for model cache (marker-cache) and results (marker-results) with :Z flag
- convert_both.py: API_URL defaults to port 8001, overridable via env
- TODO.md: reflect final decisions (iGPU 30x slower than CPU,
  --privileged required for GPU, CPU mode is default)
This commit is contained in:
oval
2026-06-07 23:37:04 +02:00
parent d1658d29b1
commit df8d0d6b74
3 changed files with 42 additions and 42 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import os
import time
import requests
API_URL = "http://localhost:8000/v1/files/convert"
API_URL = os.environ.get("API_URL", "http://localhost:8001/v1/files/convert")
TEST_FILES = [
"/home/oval/marker-api/test_files/enisa/enisa-international-strategy-2026.pdf",