Skip to content
web app that uses image recognition + web scraping to find quotes relevant to images 📷
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
README.md
app.py
demo.py
requirements.txt
scraper.py

README.md

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!

You can’t perform that action at this time.