--- title: Pycaps emoji: ๐Ÿง  colorFrom: pink colorTo: red sdk: docker app_port: 8501 tags: - streamlit - subtitles - video - captions - whisper - css pinned: true short_description: Add CSS-styled subtitles to your videos license: mit --- # ๐Ÿง  Pycaps Demo: Add Smart, Styled Subtitles to Any Video > ๐ŸŽฅ Add *TikTok-style* subtitles to your videos with CSS-like styling, animations, and AI transcription โ€“ all in Python! This is a demo of [**pycaps**](https://github.com/francozanardi/pycaps), an open-source Python tool that lets you: โœ… Transcribe videos using **OpenAI Whisper** ๐ŸŽจ Style subtitles using **CSS** ๐Ÿ’ฅ Animate words, lines or segments dynamically ๐Ÿงช Insert **emojis**, **effects**, and **tags** by context or regex ๐Ÿ“ฆ Render everything into a final styled video, automatically --- ### ๐Ÿ” What can you try here? This online demo lets you: - Upload a short video (less than 60s) - Automatically transcribe its audio - Preview how subtitles look using built-in styles - Download the final video > โš ๏ธ This runs on Hugging Face CPU infra, so it's ideal for short tests. For full GPU-powered rendering, check out the [Colab Notebook](https://colab.research.google.com/drive/117g6xujecjLyXHBwhwyzx0innCMLh_nj?usp=sharing). --- ### ๐Ÿ‘‰ Try Full Examples ![demo-gif](https://github.com/user-attachments/assets/fd2d3325-c986-4b6a-81ba-09c428577e61) ๐Ÿ”— [GitHub Repo](https://github.com/francozanardi/pycaps) ๐Ÿ““ [Google Colab Notebook](https://colab.research.google.com/drive/117g6xujecjLyXHBwhwyzx0innCMLh_nj?usp=sharing) --- ### ๐Ÿ’ก Want more? Explore the full project at [github.com/francozanardi/pycaps](https://github.com/francozanardi/pycaps) or visit [pycaps.com](https://www.pycaps.com/).