gpt-jp-gr / utils.py
mrm8488's picture
First commit
5aeff64
raw
history blame
165 Bytes
from translate import Translator
def translate_from_jp_to_en(text):
translator = Translator(from_lang='ja', to_lang='en')
return translator.translate(text)