aaa
Browse files
README.md
CHANGED
|
@@ -1,63 +1,10 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
## API Endpoints
|
| 12 |
-
|
| 13 |
-
### POST /render
|
| 14 |
-
Start a new render job.
|
| 15 |
-
|
| 16 |
-
**Request:**
|
| 17 |
-
```json
|
| 18 |
-
{
|
| 19 |
-
"design": { ... },
|
| 20 |
-
"options": {
|
| 21 |
-
"fps": 30,
|
| 22 |
-
"width": 1920,
|
| 23 |
-
"height": 1080,
|
| 24 |
-
"format": "mp4"
|
| 25 |
-
}
|
| 26 |
-
}
|
| 27 |
-
```
|
| 28 |
-
|
| 29 |
-
**Response:**
|
| 30 |
-
```json
|
| 31 |
-
{
|
| 32 |
-
"jobId": "abc123",
|
| 33 |
-
"status": "pending"
|
| 34 |
-
}
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
### GET /render/:jobId
|
| 38 |
-
Check render status.
|
| 39 |
-
|
| 40 |
-
**Response:**
|
| 41 |
-
```json
|
| 42 |
-
{
|
| 43 |
-
"jobId": "abc123",
|
| 44 |
-
"status": "completed",
|
| 45 |
-
"progress": 100,
|
| 46 |
-
"outputUrl": "/videos/abc123.mp4"
|
| 47 |
-
}
|
| 48 |
-
```
|
| 49 |
-
|
| 50 |
-
### GET /videos/:filename
|
| 51 |
-
Download rendered video.
|
| 52 |
-
|
| 53 |
-
## Local Development
|
| 54 |
-
|
| 55 |
-
```bash
|
| 56 |
-
npm install
|
| 57 |
-
npm run dev
|
| 58 |
-
```
|
| 59 |
-
|
| 60 |
-
## Environment Variables
|
| 61 |
-
|
| 62 |
-
- `PORT`: Server port (default: 7860)
|
| 63 |
-
- `CONCURRENCY`: Render threads (default: 4)
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Veditor Render Server
|
| 3 |
+
emoji: ⚡
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: red
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|