TransQueueAI is a Python-based automated translation queue system that leverages OpenAI's GPT-3.5 Turbo model. This system is designed to handle large-scale text translation tasks, ensuring efficient operation and fault tolerance.
- Parallelized Translation: Takes advantage of Python's threading capabilities to speed up the translation process.
- Rate-Limit Handling: Automatically retries translation tasks when API rate limits are reached.
- Progress Tracking: Keeps track of the translation progress and resumes from where it left off.
- Queue Persistence: Stores the task queue in a JSON file so the program can be safely stopped and resumed.
- Clone this repository to your local machine.
- Install the required Python packages using
pip install -r requirements.txt. - Rename
.env.exampleto.envand update it with your OpenAI API Key and other configurations.
- Add your
.pofiles in theinputdirectory. - Run
main.pyto start the translation process.
- The translation tasks are placed in a queue.
- Multiple threads pick tasks from the queue and send them to the OpenAI GPT-3.5 Turbo model for translation.
- The translated text is then stored and the queue is updated.
- All progress is saved in a
progress.jsonfile.
We welcome contributions! Please see the CONTRIBUTING.md for details.
This project is licensed under the MIT License - see the LICENSE.md file for details.