Skip to content

scriptJedi/Python-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Python-translator

  1. Install Python if you haven't already.
brew install python3
  1. Install the OpenAI API. *(If you are using pip3, otherwise replace pip3 with pip)
pip3 install openai
  1. Install dependencies. *(If you are using pip3, otherwise replace pip3 with pip)
pip3 install openai==0.27.0
pip3 install httpcore==0.13.3
  1. Run the script.
python3 translator.py

You can also specify a target language as a command-line argument.

python3 translator.py --target_language french

In this example, the translation will be in French.

Feel free to use this template and improve it as you see fit.

Added translator_p the same translation, but with logging and a 25 second interval to get around the openAI limitation

python3 translator_t.py --target_language ukrainian

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages