Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1006 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 1006 Bytes

Translator App Flask via Azure AI

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.

demo

Prerequisites

  • Python 3.6 or higher
  • Azure subscription
  • Azure Translator Text API key

Installation

  1. Clone the repository
  2. Install the required packages
pip install -r requirements.txt
  1. 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>

For example: keys

  1. Run the app
flask run
  1. Open your browser and go to http://127.0.0.1:5000

  2. 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.