Closed gamanox closed 3 years ago
I've seen a Colab of a similar project using Google translate to translate a prompt to English.
I just quickly tried. First install googletrans:
pip install googletrans==3.1.0a0
and then in python:
from googletrans import Translator
translator = Translator()
translator.translate(text="maalaus vanhasta talosta puiden keskellä", src='fi', dest='en').text
which gives "'painting of an old house in the middle of trees'"
thank you very much
what could be the way to make it work on another languaje? thanks a lot