# ============== ENVIRONMENT VARIABLES for marker-api ========================
#
# Copy to .env and edit as needed:
#   cp .env.example .env
#
# All variables can also be passed via K8s ConfigMap/Secret,
# podman --env, or docker-compose environment.

# -----------------------------------
# Ollama (OCR fallback)
# -----------------------------------
OLLAMA_HOST=http://10.0.1.127:11434
DEESEEK_OCR_MODEL=deepseek-ocr

# -----------------------------------
# AMD GPU (set TRUE on AMD/ROCm systems)
# -----------------------------------
AMD_COMPUTE=false           # set to "true" to enable ROCm
TORCH_DEVICE=               # override PyTorch device ("rocm", "cuda", "cpu")
MODEL_DTYPE=float32         # "float32" or "bfloat16" (bfloat16 on capable GPUs)

# -----------------------------------
# Application
# -----------------------------------
PORT=8000
HOST=0.0.0.0
FLASK_APP=app
FLASK_DEBUG=0

# -----------------------------------
# Gunicorn (production)
# -----------------------------------
GUNICORN_WORKERS=2
GUNICORN_THREADS=4
GUNICORN_TIMEOUT=300
GUNICORN_LOGLEVEL=info

# -----------------------------------
# Marker
# -----------------------------------
MARKER_OUTPUT_DIR=/app/conversion_results
UPLOAD_DIR=/app/uploads
