Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free

TensorFlow posts

  • By Lizzie Siegle
    Detect Objects in a Serverless Twilio Video App with TensorFlow.js header-tf-obj-det

    Object detection is a computer vision technique for locating instances of objects in media such as images or videos. This machine learning (ML) method can be applied to many areas of computer vision, like image retrieval, security, surveillance, automated vehicle systems and machine inspection. Read on to learn how to detect objects in a Twilio Programmable Video application using TensorFlow.js.

    object detection gif

    Setup

    To build a Twilio Programmable Video application, we will need:

    Download this GitHub repo and then create a file named .env in the top-level directory with the following contents, replacing the XXXXX placeholders with the values that apply …

    Read More
  • By Lizzie Siegle
    Liebt mich, liebt mich nicht: Klassifizieren von Texten mit TensorFlow und Twilio Liebt mich, liebt mich nicht: Klassifizieren von Texten mit TensorFlow und Twilio


    Hallo und Danke fürs Lesen! Dieser Blogpost ist eine Übersetzung von Loves Me, Loves Me Not: Classify Texts with TensorFlow and Twilio. Während wir unsere Übersetzungsprozesse verbessern, würden wir uns über Dein Feedback an help@twilio.com freuen, solltest Du etwas bemerken, was falsch übersetzt wurde. Wir bedanken uns für hilfreiche Beiträge mit Twilio Swag :)

    Der Valentinstag steht kurz bevor und nicht nur die Liebe sondern auch maschinelles Lernen liegen in der Luft. Manche würden wohl die althergebrachten Blütenblätter verwenden, um herauszufinden, ob jemand ihre Liebe erwidert, aber Entwickler würden vermutlich eher auf ein Tool wie TensorFlow zurückgreifen. In diesem Blog zeige ich, wie eine binäre Textklassifizierung mit neuronalen Netzwerken über Twilio und TensorFlow in Python durchgeführt wird. Wir können eine Textnachricht an +16782767139 senden, um diese Textklassifizierung zu testen.

    text-liebtmichnicht

    Voraussetzungen

    Read More
  • By Lizzie Siegle
    Pose Detection in Twilio Video with TensorFlow.js Detect Poses TensorFlow.js header

    Pose detection is one fun and interesting task in computer vision and machine learning. In a video chat, it could be used to detect if someone is touching their face, falling asleep, performing a yoga pose correctly, and so much more!

    Read on to learn how to perform pose detection in the browser of a Twilio Video chat application using TensorFlow.js and the PoseNet model.

    Join Room.png

    Setup

    To build a Twilio Programmable Video application, we will need:

    Follow this post to get setup with a starter Twilio Video app and to understand Twilio Video for JavaScript a bit more, or download this repo and follow the …

    Read More
  • By Lizzie Siegle
    Loves Me, Loves Me Not: Classify Texts with TensorFlow and Twilio loves me loves me not cover

    Valentine's Day is coming up and both love and machine learning are in the air. Some would use flower petals to determine if someone loves them or not, but developers might use a tool like TensorFlow. This post will go over how to perform binary text classification with neural networks using Twilio and TensorFlow in Python. Text +16782767139 to test out this text classification.

    text-lovesmenot

    Prerequisites

    Setup

    loves me not bear

    Activate …

    Read More
  • By Lizzie Siegle
    How Positive was Your Year with TensorFlow.js and Twilio positive-was-your-year with fireworks

    As 2019 (and the decade) come to an end, it's interesting to reflect on the time spent. What do our text messages say about how positive or negative our time was? This post uses TensorFlow.js to analyze the sentiment of your Twilio text messages for the year.

    tony-hawk-text-sentiment

    Prerequisites

    How does TensorFlow.js help with sentiment analysis?

    TensorFlow makes it easier to perform machine learning (you can read 10 things you need to know before getting started with it here) and for this post we will use one of their pre-trained models and training data. Let's go over some high-level definitions:

    • Convolutional Neural Network (CNN): a neural network often used to classify images and video that takes input and returns output of a …
    Read More
  • By Evangelos Resvanis
    How to Build an Image Classifier with Twilio Autopilot image-classifier-autopilot.png

    In this article, I will show you one of the many possible ways to build an Image Classifier using Twilio Autopilot in your flow. We will use Node.js with TensorFlow and show the final result on WhatsApp.

    Let's get started.

    Pre-requisites

    Our Image Classifier is based on Transfer Learning using TensorFlow. Transfer Learning is a great way to build on top of thousands of existing training models that are already available, saving you valuable development time and resources. To learn more about it and apply your own logic, check out this TensorFlow image retraining tutorial.

    Install TensorFlow by following these relevant steps.

    The Main Components

    The building blocks for this demo code are the following:

    • A Node.js Express-based app to handle all incoming requests (for example, getting the name of the new set of images you want to train the bot with; e.g. "polar bear")
    • Script for …
    Read More
  • By Lizzie Siegle
    Detect Toxic Language with Twilio Chat and Tensorflow.js toxiclanguagechat.png

    Rude or offensive comments can run rampant in today's online communication landscape; however with the power of machine learning, we can start to combat this.

    This blog post will show how to classify text as obscene or toxic on the client-side using a pre-trained TensorFlow model and TensorFlow.js. We'll then apply this classification to messages sent in a chat room using Twilio Programmable Chat.

    chat demo with toxic language

    Google provides a number of pre-trained TensorFlow models which we can use in our applications. One of those models was trained on a labeled dataset of Wikipedia comments available on Kaggle. Google has a live demo of the pre-trained TensorFlow.js toxicity model on which you can test phrases.

    Read More
  • By Sam Agnew
    Generating Nintendo Music Over the Phone in Python with Magenta and Twilio Copy of Generic Blog Header 1-3.png

    Artificial creativity is amazing, and I am always blown away by what people accomplish with neural networks. Lots of developers have used Python libraries like Magenta to create awesome music.

    I used Magenta to train a neural network on a bunch of classic Nintendo music, and I thought it would be fun to hack around with that and make a Twilio phone number you can call to hear computer-generated NES music. If you're in the US, try calling ‭(424) 398-8637‬ (424-39-TUNES) to hear!

    Let's walk through how to build a phone number that plays computer generated music using Magenta.

    Installing dependencies

    First we need to install Magenta, which can be done using pip. Make sure you create a virtual environment before moving forward. I am using Python 3.6.5, but Magenta is compatible with both Python 2 and 3.

    Run the following command to install Magenta in your …

    Read More
  • By Sam Agnew
    Training a Neural Network on MIDI data with Magenta and Python Copy of Generic Blog Header 3-5.png

    Since I started learning how to code, one thing that has always fascinated me was the concept of computers creating music. With Magenta, a Python library built that makes it easier to process music and image data, this can be done more easily than before. Magenta has pre-trained example models you can use to generate music, as seen in a previous blog post, but it's a lot more fun to create your own.

    Let's walk through how to use Magenta to train a neural network on a set of music data from classic Nintendo games to generate new Nintendo-sounding tunes.

    Super Mario Bros 2 GIF

    Installing Magenta

    First we need to install Magenta, which can be done using pip. Make sure you create a virtual environment before installing. I am using Python 3.6.5, but Magenta is compatible with both Python 2 and 3.

    Run the following command to install Magenta in your …

    Read More
  • By Sam Agnew
    Generating music with Python and Neural Networks using Magenta for TensorFlow MIDI Data

    Machine Learning is all the rage these days, and with open source frameworks like TensorFlow developers have access to a range of APIs for using machine learning in their projects. Magenta, a Python library built by the TensorFlow team, makes it easier to process music and image data in particular.

    Since I started learning how to code, one of the things that has always fascinated me was the concept of computers artificially creating music. I even published a paper talking about it in an undergrad research journal my freshman year of college.

    Let's walk through the basics of setting up Magenta and programmatically generating some simple melodies in MIDI file format.

    Installing Magenta

    First we need to install Magenta, which can be done using pip. Make sure you create a virtual environment before installing. I am using Python 3.6.5, but Magenta is compatible with both Python 2 and …

    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.