burme-subtitle-api / README.md
openhands
Add FastAPI backend with subtitle processing
e3306bb
---
title: Burme Subtitle Editor API
emoji: 🎬
colorFrom: gray
colorTo: yellow
sdk: docker
sdk_version: 3.9
app_port: 7860
pinned: false
---
# Burme Subtitle Editor API
FastAPI backend for Burme Subtitle Editor. Deploys to Hugging Face Spaces with Docker.
## Endpoints
| Method | Endpoint | Description |
|:-------|:---------|:-----------|
| `GET` | `/` | API information |
| `GET` | `/health` | Health check |
| `POST` | `/api/subtitles/convert` | SRT → JSON |
| `POST` | `/api/subtitles/export` | JSON → SRT |
| `POST` | `/api/subtitles/validate` | Validate subtitles |
| `POST` | `/api/subtitles/shift` | Shift timestamps |
| `POST` | `/api/subtitles/scale` | Scale timestamps |
## Docker
```bash
docker build -t burme-api .
docker run -p 7860:7860 burme-api
```
## Environment
- `PORT`: Server port (default: 7860)