From edd6e03fc229ce2ff5e0a7ecad834efd417684d3 Mon Sep 17 00:00:00 2001 From: hideya kawahara Date: Thu, 21 Jun 2018 00:05:12 +0900 Subject: [PATCH] un-PWA-ize the app --- README.md | 15 ++------- public/index.html | 2 +- public/manifest.json | 15 --------- public/service-worker.js | 66 ---------------------------------------- src/index.js | 14 ++++----- 5 files changed, 10 insertions(+), 102 deletions(-) delete mode 100644 public/manifest.json delete mode 100644 public/service-worker.js diff --git a/README.md b/README.md index 7479f34..604ba3e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# Doodle Recognition PWA with TensorFlow.js +# Doodle Recognition Web App with TensorFlow.js -This is an example [PWA](https://en.wikipedia.org/wiki/Progressive_Web_Apps) +This is an example Web App that uses [TensorFlow.js](https://js.tensorflow.org/) and performs doodle recognition. It loads a pre-trained CNN model that was converted to TensorFlow.js format @@ -32,17 +32,6 @@ yarn start # Starts a web server and opens a page. Also watches for changes. ``` After `yarn build`, `public` directory holds the deployable files. -Note that those files need to be served via **https** to enable PWA features -(unless they are served from `localhost`). - -### Notes on Debugging - -This is a PWA, so the involved files will be cached -(it is different from the browser cache; it is Service Worker controlled cache). -Attention is required to make sure that each debug execution respects -the latest file changes. Please reference the document -["Debugging Service Workers"](https://developers.google.com/web/fundamentals/codelabs/debugging-service-workers/) -for details including the other aspects of debugging PWA and Service Workers. ### Updating Pre-trained Model Data diff --git a/public/index.html b/public/index.html index 7c48a24..18db99c 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ Doodle Recognition with TensorFlow.js - +