from flask import Flask, jsonify, render_template, request
from recognizer import *

# set the project root directory as the static folder, you can set others.
app = Flask(__name__)


@app.route('/')
def root():
    return app.send_static_file('index.html')


@app.route('/hw')
def hello_world():
    return 'Hello, World!'


@app.route('/recognizeDigit', methods=['POST'])
def recognize():
    image = request.json['image']
    digit = recognize_digit(image)
    return jsonify(int(digit))

@@ -484,8 +484,79 @@
 digit))%0A
+    %0Aif __name__ == '__main__':%0A    app.run(debug=True,host='0.0.0.0')%0A

Update app.py