This is a simple translator app using Flask and Azure AI. The app is able to translate text from the language you have inputted to another.
- Python 3.6 or higher
- Azure subscription
- Azure Translator Text API key
- Clone the repository
- Install the required packages
pip install -r requirements.txt
- Set the environment variables
export KEY=<your-azure-text-translator-api-key>
export ENDPOINT=<your-azure-text-translator-endpoint>
export LOCATION=<your-azure-text-translator-location>
- Run the app
flask run
-
Open your browser and go to
http://127.0.0.1:5000
-
Enter the text you want to translate and select the target languages. The language of the text you have entered should be auto-detected. Click the
Translate
button to see the translated text.