diff --git a/README.md b/README.md index 757f26517..e7eff0fca 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This project was intended to explore the properties of convolution neural networ * See [paper](https://arxiv.org/abs/1702.05373 "EMNIST: an extension of MNIST to handwritten letters") for more info ##### Todo - * Update gif with new webserver + * Update gif with new webapp * Train more models * RCNN * Optimize hyperparameters diff --git a/server.py b/server.py index 1f524d9cd..8ececc828 100644 --- a/server.py +++ b/server.py @@ -100,7 +100,7 @@ def parseImage(imgData): # Generate response response = {'prediction': chr(mapping[(int(np.argmax(out, axis=1)[0]))]), 'confidence': str(max(out[0]) * 100)[:6]} - # response = str(response) + '\nConfidence: %s%' % str(confidence) + return jsonify(response) if __name__ == '__main__':