File size: 832 Bytes
cc5a1a1
e3306bb
 
 
 
cc5a1a1
e3306bb
 
cc5a1a1
 
 
e3306bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
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)