|
Download README.md from View1177/TextPhantom_OCR_API2_01: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/spaces/View1177/TextPhantom_OCR_API2_01/resolve/main/README.md
- Command line
-
hf download hf://spaces/View1177/TextPhantom_OCR_API2_01/README.md
-
curl -L -o README.md https://huggingface.co/spaces/View1177/TextPhantom_OCR_API2_01/resolve/main/README.md
595 Bytes
| title: TextPhantom OCR API | |
| emoji: "🪄" | |
| colorFrom: indigo | |
| colorTo: pink | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| FastAPI backend for TextPhantom (Chrome extension). | |
| ## Endpoints | |
| - `GET /health` | |
| - `GET /version` | |
| - `GET /warmup?lang=th` | |
| - `POST /translate` | |
| - `GET /translate/{job_id}` | |
| - `POST /ai/resolve` | |
| - `GET /ai/models` | |
| - `POST /ws` (WebSocket) | |
| ## Environment | |
| - `AI_API_KEY` (optional) | |
| - `SERVER_MAX_WORKERS` (default: 15) | |
| - `JOB_TTL_SEC` (default: 3600) | |
| - `TP_DEBUG` (set to `1` to enable debug logs) | |
| For Spaces on small CPU, setting `SERVER_MAX_WORKERS=2` is usually enough. | |