Coder Social home page Coder Social logo

marwan-jabbour / fall2020-workshop3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcgillaisociety/fall2020-workshop3

0.0 0.0 0.0 541 KB

Workshop material on deploying an ML app with Flask and React

HTML 16.96% CSS 8.23% JavaScript 39.56% Python 35.25%

fall2020-workshop3's Introduction

McGill AI Workshop 3

This workshop will cover the basics on:

  • Creating a flask backend with a pytorch model
  • Creating REST endpoints in flask for clients to call
  • Create a reactjs frontend
  • Having the frontend call the backend for predictions

Slides

The slides for this workshop can be found here

Backend

The backend is written in Flask and requires a Python version of 3.8+

We provide below 3 different ways of installing the needed dependencies to run the Flask app. Please run the following commands from within the backend folder

  • Using pip:
pip install -r requirements.txt
  • Using Pipenv:
pip install pipenv
pipenv shell
pipenv install
  • Using Conda:
conda env create -f environment.yml

For more info about creating and managing Conda environments, please refer to this link

Frontend

The frontend was instantiated using the following command

npm init react-app frontend

Since this has already been done here's what you need to do to run the frontend

cd frontend 
npm install
npm start

fall2020-workshop3's People

Contributors

wykzhang avatar mohamed-youssef-bou 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.