Upload your video and get subtitles.
- Subtitle generation using a pre-trained model.
- Easy-to-use web interface built with Streamlit.
- Efficient processing with NVIDIA CUDA.
- Docker
- NVIDIA GPU and drivers compatible with CUDA 12.4.1
- Download the model and place the weight to
./model
-
Clone the Repository
git clone https://github.com/yourusername/subtitle-generator.git cd subtitle-generator
-
Build the Docker Image
docker compose up -d
This will start the application, and you can access the Streamlit interface at http://localhost:8501.
-
Access the Web Interface
Open your web browser and navigate to http://localhost:8501.
-
Upload Video
Use the provided interface to upload your video file.
-
Generate Subtitles
The backend will process the video, and subtitles will be generated and downloaded to your local computer.
.
├── Dockerfile
├── README.md
├── app.py
├── core
│ └── ... (pre-built Rust backend binary and necessary files)
├── requirements.txt
└── start.sh
Dockerfile
: The Dockerfile to build the project container.README.md
: This README file.app.py
: The Streamlit application code.core/
: Directory containing the pre-built Rust backend binary.requirements.txt
: Python dependencies file.start.sh
: Script to start the backend and frontend.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is for non-commercial usages. For commercial usages, please contact the author: [email protected]
- NVIDIA for providing the CUDA base image.
- Streamlit for the easy-to-use web application framework.
- Tsinghua University for their software mirror.