Am happy to be part of the award-winning project on AI in Cisco and announced by Andrew Ng.
Tuesday, August 11, 2020
Tuesday, December 24, 2019
Tuesday, December 3, 2019
Sunday, November 10, 2019
Tuesday, September 10, 2019
Rasa RESTful API calls
One of my requirement is Parse a message with the trained RASA nlu model.
1) Train a Rasa model using rasa train
2) Start a Rasa server with rasa run --enable-api
3) Parse a message by running
curl -X POST http://52d9691d.ngrok.io/model/parse -H 'Content-Type: application/json' -d '{"text":"Your text"}'
Used ngrok and Postman
1) Train a Rasa model using rasa train
2) Start a Rasa server with rasa run --enable-api
3) Parse a message by running
curl -X POST http://52d9691d.ngrok.io/model/parse -H 'Content-Type: application/json' -d '{"text":"Your text"}'
Used ngrok and Postman
Friday, August 30, 2019
Wednesday, August 21, 2019
Generate Text using OpenAIGPT2 in Python
!git clone https://github.com/graykode/gpt-2-Pytorch
import os
os.chdir('gpt-2-Pytorch')
!curl --output gpt2-pytorch_model.bin https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-pytorch_model.bin
!pip install -r requirements.txt
!python main.py --text "Chandrayaan-2 is India's second lunar exploration mission after Chandrayaan-1. Developed by the Indian Space Research Organisation, the mission was launched from the second launch pad at Satish Dhawan Space Centre on 22 July 2019 at 2.43 PM IST to the Moon by a Geosynchronous Satellite Launch Vehicle Mark III."
import os
os.chdir('gpt-2-Pytorch')
!curl --output gpt2-pytorch_model.bin https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-pytorch_model.bin
!pip install -r requirements.txt
!python main.py --text "Chandrayaan-2 is India's second lunar exploration mission after Chandrayaan-1. Developed by the Indian Space Research Organisation, the mission was launched from the second launch pad at Satish Dhawan Space Centre on 22 July 2019 at 2.43 PM IST to the Moon by a Geosynchronous Satellite Launch Vehicle Mark III."
Subscribe to:
Posts (Atom)





