This project was bootstrapped with Create React App.
A live demo of this project is available Here.
- Node.js: Link
- yarn:
npm install yarn
Clone/Download and run the following commands:
Using yarn to install
Using npm to install
Change the url of the POST request inside of src/Pages/Home.js
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
Works using a Flask REST API to receive POST requests
Since the host for the demo website uses https, the model needed SSL certificates. If you are just running the website locally, make the following chanes:\
app.run(host= '192.168.254.76', port=9000, debug=True, ssl_context=('cert.pem', 'key.pem'))
- change to
app.run()
- Developed on Python 3.9: Link
pip install -r requirements.txt
- Reference
training/train_duck.ipynb
andtraining/train_wadaba.ipynb
- Add new data to
training/data/
- Incorporate new data, and run training
- Export model to
modelname.pkl
- Add model name and ID to
src/Pages/Home.js
- Add conditional statement to
app.py
for new model id - Load Model in
app.py
, provide new predict function if something else was used