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:
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user