llm-ready-data / start.sh
xce009's picture
ok
feefeb8
Raw
History Blame
412 Bytes
#!/usr/bin/env bash
set -euo pipefail
python -c "import markitdown, fastapi, httpx, pandas" 2>/dev/null || { echo "Missing dependencies"; exit 1; }
HOST="${HOST:-0.0.0.0}"
PORT="${PORT:-7860}"
WORKERS="${WORKERS:-1}"
LOG_LEVEL="${LOG_LEVEL:-info}"
exec python -m uvicorn app.api.server:app \
--host "$HOST" \
--port "$PORT" \
--workers "$WORKERS" \
--log-level "$LOG_LEVEL" \
--access-log