Git Product home page Git Product logo

caai-faces's Introduction

CAAI-faces

Visualizations for the Faces Project from the CAAI

Requirements

Python 3

To display the visualizations

Since we need to interact with a Python wrapper for the CNN, the webpage is now a Flask app. To see the webpage, first clone the repository, then cd CAAI-faces. We need to create a virual environment in venv/ and activate the virtual environment (run the following from CAAI-faces/):

python3 -m venv ./venv
. venv/bin/activate

Next we need to install the Python modules needed to run the CNN into our virtual environment:

pip install -r requirements.txt

Now we need to tell Flask the name of our app and that we are running in development mode:

export FLASK_APP=faces
export FLASK_ENV=development

Then we can run the Flask app:

flask run

And the following should appear:

(venv) <<Your Username>>:CAAI-faces <<Your Username>>$ flask run
 * Serving Flask app 'faces.py' (lazy loading)
 * Environment: development
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 869-640-629

Open a browser tab and navigate to http://127.0.0.1:5000/. The Chicago Booth webpage should appear.

To stop hosting the webpage, press CTRL+C. To deactivate the virtual environment, type deactivate into the terminal.

caai-faces's People

Contributors

kawilliams avatar manikanta2498 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

manikanta2498

caai-faces's Issues

Delete uploaded files

Add code to faces.py to delete existing uploaded images in static/uploaded-faces/.

Options:

  • SIMPLE: delete all contents of directory at start of script
    • causes issue if person A uploads file, then person B deletes all files, then person A can't view their file
  • COMPLICATED: delete the oldest contents of the directory at the start of script
    • need to sort files by date/time and remove ones more than 00:15:00 old (15 min -- or read time of the article)

Make mobile-friendly

Upload:

  • check button/text size
  • check image size

Compare:

  • add touch for mobile
  • check image size

Sliders

  • add touch for mobile
  • check slider size
  • check image size

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.