Skip to content

mattmorgis/Reuben-and-Cherise

Repository files navigation

Reuben and Cherise

Description

This project is made up of two bots: Reuben and Cherise.

It uses Microsoft Azure's Cognitive Services to generate a caption for an image.

It runs on AWS Lambda

Reuben

The project began with Reuben, a bot to handle posting caption for my personal photos. Each time I post a photo to my Instagram, Reuben will generate a caption and post the image and caption to my Twitter and Facebook.

Example: https://twitter.com/rappidmatt/status/957844021740736512

Cherise (TODO)

Demoing this project requires posting to my personal Instagram account.

Cherise will be a Twitter account. Anyone can tweet it an image and it will quote tweet the image with the caption.

10 Second Tutorial (Reuben)

Create an .env file with the following

INSTAGRAM_ACCESS_TOKEN=

AMAZON_ACCESS_KEY_ID=
AMAZON_SECRET_ACCESS_KEY=
S3_BUCKET=
MEDIA_ID_FILE_NAME=

COGNITIVE_SERVICES_URL=
COGNITIVE_SERVICES_KEY=

FACEBOOK_ACCESS_TOKEN=

TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_SECRET=

Build and deploy with

./build.sh

Run the function locally with

node run.js

Run tests with Jest or Wallaby.js

npm test

This project also supports launching and debugging in VS Code.

About

A machine learning image captioning function

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published