FastAPI service wrapping the Surya-OCR-2 model (datalab-to) served through vLLM: legacy /v1/api/ai/* endpoints, an OpenAI-compatible /v1/chat/completions endpoint, a coalescing request batcher, a local OCR CLI, Docker packaging, multilingual example outputs, and quantization/concurrency benchmarks. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7 lines
195 B
Python
7 lines
195 B
Python
import uvicorn
|
|
|
|
from surya.endpoint.app import app # noqa: F401 (re-exported for `uvicorn api:app`)
|
|
|
|
if __name__ == "__main__":
|
|
uvicorn.run("api:app", host="0.0.0.0", port=5002, workers=1)
|