Skip to content

A Python app that connects to Amazon's Lex and handles different intents

License

Notifications You must be signed in to change notification settings

edwardleoni/cerebrum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cerebrum

The Cerebrum performs higher functions like interpreting touch, vision and hearing, as well as speech, reasoning, emotions, learning, and fine control of movement. It's also the largest part of the brain and is composed of right and left hemispheres.

And so, this is a Python app that receives commands and connects Amazon's Lex to process them and hopefully give an appropriate response

Installation

Old School

pip install -r requirements.txt export AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID>; export AWS_SECRET_KEY_ID=<AWS_SECRET_KEY_ID>; export AWS_REGION_NAME=<AWS_REGION_NAME>; export LEX_BOT_NAME=<LEX_BOT_NAME>; export LEX_BOT_ALIAS=<LEX_BOT_ALIAS>; export LEX_USER_ID=<LEX_USER_ID>; export FLASK_APP=app.py; python app.py -m flask run

Docker

Build

docker build --build-arg AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID> --build-arg AWS_SECRET_KEY_ID=<AWS_SECRET_KEY_ID> --build-arg AWS_REGION_NAME<AWS_REGION_NAME> --build-arg LEX_BOT_NAME=<LEX_BOT_NAME> --build-arg LEX_BOT_ALIAS=<LEX_BOT_ALIAS> --build-arg LEX_USER_ID=<LEX_USER_ID> . -t cerebrum:latest

One-off run

docker run -p 5004:5000 --name cerebrum -d cerebrum:latest

About

A Python app that connects to Amazon's Lex and handles different intents

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages