This is a sample web app using the Flask Python module. The app utilizes the Azure AI Translator API to translate user text to multiple languages.
To run this web app, you'll need to set up a virtual environment and install the following dependencies:
- Flask
- Azure Translator Text
-
Open a terminal and navigate to the project directory:
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
- For macOS/Linux:
source venv/bin/activate
- For Windows:
venv\Scripts\activate
- For macOS/Linux:
-
Install the dependencies:
pip3 install -r requirements.txt
Update the .env file with the appropriate values from the Azure Translator resource.
-
Make sure your virtual environment is activated.
-
Start the Flask development server:
flask run
-
Open your web browser and navigate to
http://localhost:5000
to access the web app.