Spaces:
Paused
Paused
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,47 +3,10 @@ title: Text Styling Space
|
|
| 3 |
emoji: π¨
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
| 6 |
-
sdk:
|
| 7 |
-
sdk_version: 4.19.2
|
| 8 |
-
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
# π¨ Text Styling Space
|
| 13 |
|
| 14 |
-
Add beautiful text overlays and captions to your videos using fonts from your HF Dataset.
|
| 15 |
-
|
| 16 |
-
## Features
|
| 17 |
-
|
| 18 |
-
- β¨ **Title Overlays** - Add styled titles with custom fonts
|
| 19 |
-
- π **Subtitles** - Burn subtitles into videos
|
| 20 |
-
- π§ **Watermarks** - Add watermark text
|
| 21 |
-
- π― **Multiple Positions** - Place text anywhere
|
| 22 |
-
- π¨ **Custom Colors** - Choose text and background colors
|
| 23 |
-
- π **Multi-language** - Supports Chinese, English, Japanese fonts
|
| 24 |
-
|
| 25 |
-
## API Endpoints
|
| 26 |
-
|
| 27 |
-
### POST /api/style
|
| 28 |
-
Add text overlays to a video
|
| 29 |
-
|
| 30 |
-
```json
|
| 31 |
-
{
|
| 32 |
-
"project_id": "your-project-id",
|
| 33 |
-
"video_url": "https://.../base_video.mp4",
|
| 34 |
-
"title_overlay": {
|
| 35 |
-
"text": "My Awesome Video",
|
| 36 |
-
"font_family": "source-han-sans",
|
| 37 |
-
"font_size": 60,
|
| 38 |
-
"color": "gold",
|
| 39 |
-
"bg_color": "black@0.5",
|
| 40 |
-
"position": "center"
|
| 41 |
-
},
|
| 42 |
-
"subtitles": {
|
| 43 |
-
"font_family": "noto-cjk",
|
| 44 |
-
"font_size": 32,
|
| 45 |
-
"color": "white",
|
| 46 |
-
"bg_color": "black@0.7",
|
| 47 |
-
"position": "bottom"
|
| 48 |
-
}
|
| 49 |
-
}
|
|
|
|
| 3 |
emoji: π¨
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: pink
|
| 6 |
+
sdk: docker
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
# π¨ Text Styling Space
|
| 11 |
|
| 12 |
+
Add beautiful text overlays and captions to your videos using fonts from your HF Dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|