Welcome to Sugarcoat, an AI-powered translator app built using Azure Cognitive Services! Sugarcoat leverages the power of Azure's translation API to deliver fast, accurate, and polished translations in seconds. This app is designed for beginners who want to explore AI and cloud technologies in a simple and fun way. Try it out here:- https://sugarcoat.azurewebsites.net/
- What is Sugarcoat?
- Why Sugarcoat?
- How to Get Started
- Features
- Deploying on Azure App Service
- Contributing
- License
Sugarcoat is a beginner-friendly app that uses Azure Cognitive Services to provide quick and accurate translations between various languages. Whether you're a student, developer, or AI enthusiast, Sugarcoat makes it easy to dive into the world of artificial intelligence and cloud technologies.
- ✅ Beginner-friendly: Perfect for anyone new to AI or cloud development.
- ✅ Built with Azure: Leverage Microsoft’s powerful cloud tools for translation services.
- ✅ Free for students: If you have an Azure Student Account, you can build and deploy this app at no cost!
- ✅ Quick to build: The app can be built and deployed in under an hour!
- ✅ Deployed on Azure App Service: Hosted seamlessly on Azure, so you don’t need to worry about infrastructure.
-
Clone the Repository:
Start by cloning the repository to your local machine:
git clone https://github.com/yourusername/sugarcoat.git cd sugarcoat -
Install Dependencies:
Install the required dependencies using
pip:pip install -r requirements.txt
-
Set up Azure Cognitive Services:
- Create a Microsoft Azure account if you don’t already have one.
- Set up Azure Cognitive Services for translation.
- Once you’ve created the service, you’ll receive an API key.
-
Configure the App:
Update the
config.pyor environment variables with your Azure API key and endpoint URL:AZURE_API_KEY = 'your-api-key' AZURE_ENDPOINT = 'your-endpoint-url'
-
Run the App Locally:
You can now run the app locally:
python app.py
Open your browser and visit
http://localhost:5000to start using the translation app!
- Translate text between languages: Choose the source and target languages, and get your translation instantly.
- Multiple language support: Azure Cognitive Services supports a wide range of languages to choose from.
- Simple, user-friendly interface: A sleek and easy-to-navigate UI to get your translations quickly.
Once you've set up and tested the app locally, it’s time to deploy it to Azure App Service. Follow these steps:
-
Create an Azure App Service:
- Go to the Azure Portal and create a new App Service.
- Choose the Python stack when prompted.
-
Prepare your app for deployment:
-
Ensure you have a
requirements.txtfile:pip freeze > requirements.txt -
Create a Procfile to tell Azure how to run your app:
web: gunicorn app:app
-
-
Deploy to Azure App Service:
-
If you haven’t installed the Azure CLI yet, you can do so from here.
-
Log in to your Azure account using:
az login
-
Navigate to your app’s directory and deploy using Git:
git init git add . git commit -m "Initial commit" az webapp up --name your-app-name --resource-group your-resource-group --sku B1
-
-
Access Your App:
Once the deployment is complete, you’ll receive a URL to access your app. Open the link in your browser and start translating text using Sugarcoat!
Sugarcoat is an open-source project, and contributions are always welcome! Here’s how you can get involved:
- Fork the repository
- Create a new branch (
git checkout -b feature-name) - Commit your changes (
git commit -am 'Add new feature') - Push to your branch (
git push origin feature-name) - Open a Pull Request
Let’s innovate together! 🚀
This project is licensed under the MIT License - see the LICENSE file for details.
✨ Your journey into AI starts here—let’s build something amazing with Azure! ✨
(P.S. If you're a student, remember to use your Azure Student Account for free access to the Azure services used in this app!)