Skip to content

In this demo I will be demoying an image labelling using redisAI and we will display our result using Twilio WhatsApp API. This interactive demo can give you good insights of twilio API's as well as AI capabilities of Redis.

Notifications You must be signed in to change notification settings

JBAhire/Twilio-RedisAI-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilio-RedisAI-Demo

This is the code for the demo I shown in Redis Day Banaglore. In this demo I will be demoying an image labelling using redisAI and we will display our result using Twilio WhatsApp API. This interactive demo can give you good insights of twilio API's as well as AI capabilities of Redis.

Prerequisites

Installation for Redis

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-5.0.7.tar.gz
$ tar xzf redis-5.0.7.tar.gz
$ cd redis-5.0.7
$ make

The binaries that are now compiled are available in the src directory. Run Redis with:

$ src/redis-server

You can interact with Redis using the built-in client:

$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

Installation for RedisAI

You can find instructions to launch docker instance or build RedisAI from source here: https://github.com/RedisAI/RedisAI

Setup and Demo:

  • Start Redis-Server with redisAI module or launch redisAI docker instance. [ you can find instructions at https://github.com/RedisAI/RedisAI ]

  • Run Demo.py file Run demo.py file

  • Your Flask app will need to be visible from the web so Twilio can send requests to it. Ngrok lets us do this. With it installed, run the following command in your terminal in the directory your code is in. Run ngrok http 5000 in a new terminal tab. ngrok

  • Grab that ngrok URL to configure twilio whatsapp sandbox. Twilio Whatsapp Sandbox

  • Follow the instructions on twilio whatsapp sandbox website to join the sandbox.

  • send any photo on the chat and see the result!

If you want to know more about this and how this works please check out my blog post here:

About

In this demo I will be demoying an image labelling using redisAI and we will display our result using Twilio WhatsApp API. This interactive demo can give you good insights of twilio API's as well as AI capabilities of Redis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages