elanatee / quotifai

web app that uses image recognition + web scraping to find quotes relevant to images 📷

Home Page:http://quotifai.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quotifai 📷

a web app that displays a quote related to a submitted image

technologies used:

how it works

  • demo.py uses Clarifai's image recognition API to analyze an image and generate a list of tags based on the image content
  • scraper.py retrieves quotes from Goodreads.com based on the image tags.

setup + run

to get this code up and running on your own machine,

  1. make sure you have Python and the pip package installer
  2. clone this repository (or download it to your desktop)
  3. in terminal, navigate to the project directory
    $ cd /path/to/quotifai
    
  4. install the required Python packages
    $ pip install -r requirements.txt
    
  5. get a Clarifai API key from developer.clarifai.com and follow these instructions (under Setup) to configure it on your machine
  6. tell Flask which application to work with by setting the FLASK_APP environment variable:
    • on MacOS/Linux: $ export FLASK_APP=app.py
    • on Windows: $ set FLASK_APP=app.py
  7. now you can run the app using flask run, and navigate to http://127.0.0.1:5000/ to see it live! your terminal should look like this:
    $ flask run
     * Serving Flask app "app"
     * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    

resources & further reading

thanks!

feedback and pull requests are warmly welcomed and encouraged!

tweet me @elanatee if you have any questions!

About

web app that uses image recognition + web scraping to find quotes relevant to images 📷

http://quotifai.herokuapp.com/


Languages

Language:Python 57.5%Language:HTML 34.8%Language:CSS 7.6%