This repository contains code designed to faciliate your experimentation and exploration with the Azure AI Services such as Azure AI Language, Azure AI Speech, Azure AI Translator, etc.
Azure AI services help developers and organizations to rapidly create intelligent, cutting-edge, market-ready, and responsible applications with out-of-the-box and pre-built and customizable APIs and models. Example applications include natural language processing (NLP) for conversations, search, monitoring, translation, speech, vision, and decision-making.
Most Azure AI services are available through REST APIs and client library SDKs in popular development languages. For more information, see each service's documentation.
Follow the steps below to set up your environment and start utilizing the features of this repository:
- Python (>= 3.8)
- Visual Studio Code
- Clone this repository to your local machine.
git clone https://github.com/VincentK16/azure-ai-services-webapp.git
- Navigate to the project directory.
cd azure-ai-services-webapp
- Create a virtual environment.
python3 -m venv <name_of_your_env>
- Activate the virtual environment.
- On Windows:
<name_of_your_env>\Scripts\activate
- On macOS/Linux:
source <name_of_your_env>/bin/activate
- Install project dependencies from the requirements.txt file.
pip install -r requirements.txt
- Create a .env file in the root directory of your project to store sensitive information such as the Azure OpenAI resource's keys. You can find a sample .env file in the repository called
.env_sample
. Duplicate this file and rename it to.env
, then fill in the necessary values.
cp .env_sample .env
Now, you're ready to use the secrets stored in your .env
file securely within your project. Feel free to customize the .env
file with your other specific secrets and configurations as needed.
Note: Never share your .env
file publicly or commit it to version control systems like Git, as it contains sensitive information. The best practice is to use a .gitignore
file in your repo to avoid commiting the .env
file.
- Run the web app.
python app.py
- Browse to the web app.
https://127.0.0.1:5000/ailanguage