Giter Site home page Giter Site logo

quote_machine's Introduction

quote_machine

Takes an image of a celebrity, finds a quote by them, then places the quote on the image.

Installation

bundle install

Note that RMagick and Nokogiri are required, so you may need to follow the installation instructions associated with them, as they require compilation.

Running

Before you run the application, you will need credentials for the following APIs:

https://www.microsoft.com/cognitive-services/en-us/computer-vision-api

http://www.alchemyapi.com/api/sentiment-analysis

Once you have keys for these APIs, copy creds_example.yml over to creds.yml and put the keys in that file. You can then run the app with: ruby main.rb

This will spin up a Sinatra server that you can hit on the following URL:

http://localhost:4567/

From there, just paste the URL of a celebrity image, select the quote type you want, and watch the magic happen!

Notes

Since Alchemy's free version has a strict rate limit, I am only grabbing the first quote for a given celebrity no matter what. To score the full list of quotes and properly sort on them, uncomment https://github.com/snex/quote_machine/blob/master/brainy_quote.rb#L15

quote_machine's People

Contributors

snex avatar

Stargazers

Alan Spadoni avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.