This repository contains static example that serves the DroneAid model. The TensorFlow.js model is served with nginx HTTP server. You can build your application in Code Engine by using the pre-built image on Docker Hub.
To run the examples:
-
Clone this repository
-
Point your web server to the
droneaid-tfjs
directory in the cloned repoFor example:
-
using the Web Server for Chrome extension (install it from the Chrome Web Store)
- Go to your Chrome browser's Apps page (chrome://apps)
- Click on the Web Server
- From the Web Server, click CHOOSE FOLDER and browse to the cloned repository directory
- Start the Web Server
- Make note of the Web Server URL(s) (e.g.,
http://127.0.0.1:8887
)
-
using the Python HTTP server module
- From a terminal shell, go to the cloned repository directory
- Depending on your Python version, enter one of the following commands:
- Python 2.x:
python -m SimpleHTTPServer 8080
- Python 3.x:
python -m http.server 8080
- Python 2.x:
- Once started, the Web Server URL should be
http://127.0.0.1:8080
-
-
From the browser, access
index.html
via the Web Server's URL (e.g.,http://localhost:8080
)