H@B Presents: Flask Workshop

This workshop is an introduction to Flask and API integration.

Files

  • app.py
  • static/
    • style.css
  • templates/
    • index.html

Resources

Set up

Python and environment

  • python3 -m venv venv
  • source venv/bin/activate
  • pip install -r requirements.txt

API key

  • key = 'd8c6adff128c41d8a95a375cea3357dc' # for access to Clarifai's API

An apple a day...

  • We will be using an image of an apple to test our app during development
  • apple = "https://thumbs.dreamstime.com/z/perfect-green-appl-apple-isolated-white-background-48734377.jpg"

Requirements

  • python 3.5, 3.6, or 3.7
  • see requirements.txt

Additional Information

Hack@Brown 2020
Workshop: Flask
Date: Sun 11 17 2019

Contributors

Nicole Cheng
Kevin Du
Katherine Sang