Let's Build ML Application using Streamlit and Azure in 5mins!!
Tags: azure, nlp, machinelearning, microsoft
Published: 2021-05-10 04:12:24

**Cognitive Services brings AI within reach of every developer—without requiring machine-learning expertise. All it takes is an API call to embed the ability to see, hear, speak, search, understand and accelerate decision-making into your apps. Enable developers of all skill levels to easily add AI capabilities to their apps**-Microsoft.

Microsoft has become a cloud-based provider of AI capabilities, machine learning capabilities and sentimental analysis.
we can use the azure cognitive services to build intelligent applications 
Step-1: Create a [Microsoft Azure Account](//portal.azure.com).

Step-2:Create a new resource
![Capture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tx0d2xz6t9jacrunirst.PNG)
 Step-3: Search for Translator in resources
![Screenshot 2021-05-08 212716](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nxhsphszhsqcgg888s0b.png)

       ->Give resource name
       ->Select region as eastus
       ->Select free subscription in the pricing tier
![123](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ezfa32c7g5yybomtr3q2.png)
 
Then you can see your API keys for the translator app.
![get-cog-serv-keys](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kllwxld3m60uywuk4ybu.png)
 
Step-4: Let's set up Streamlit.
Step-5:Open your command line install them
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rjlq5vq41b827duopmtf.png)

Step-6: There is a good *[Streamlit course](https://www.udemy.com/course/python-streamlit-for-making-web-applications/)* on Udemy. It is a free course for beginners.
Let's set up our application.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8dwj1z1chpk2rwauoyv2.png)
Explore the [quick start](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/quickstart-translator?tabs=python) guide on the Azure page and get the code.
![py code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mq3tesberp2h7201ln0b.PNG)
Step-7: let's change some of the parameters and then our code will be ready. 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h5c123y25u2yjm1jeks5.png)
 
 Step-8: Run application:- streamlit run <app-name>.py in command line.
 
####Try out a working application here: https://share.streamlit.io/rajeshsilvoj/scripter_app/main/app1.py

 *Input*:"	
The probosci's monkey (Nasalis larvatus) is endemic to the island of Borneo, where it is found predominantly in coastal areas, near rivers and in swamp forests. It is perhaps the most aquatic of the primates and is a fairly good swimmer, capable of swimming underwater; apart from this, it is largely arboreal. This photograph is a composite of three images and shows a probosci's monkey jumping between trees in Labuk Bay in the Malaysian state of Sabah."

**Translated to Italian**👇:
 ![output](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6z3nyow09ap9wdpq5iuz.PNG)
 
**Translated to Hindi**👇:
 ![ot_1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vimqkqpcts4pt9ewugdq.PNG)

Github repo: https://github.com/rajeshsilvoj/Scripter-Article
Contact me :
[Linkedin](https://www.linkedin.com/in/silvoj-rajesh-kumar-ba655b1a7/), [Instagram](https://www.instagram.com/rajesh_silvoj/),[Github](https://github.com/rajeshsilvoj)