This repository contains a very simple server implemented in flask which loads a a simple neural network model trained using Keras from its saved-weights and model.
In this example a very simple case of XOR is considered.
- Install Anaconda:
https://docs.continuum.io/anaconda/install
- Clone this repository
git clone https://github.com/ansrivas/keras-rest-server.git
cd keras-rest-server
- Create a new environment ( Change python=2 or python=3) and activate it:
conda create --name keras-server -y python=2
source activate keras-server
- Install all the dependencies:
conda env update -n keras-server --file requirements.txt
- To remove the environment run:
conda remove -n keras-server --all -y
python createpickles.py
Run the server (defaults to http://localhost:7171)
python server.py
python client.py