from flask import Flask, render_template, request, jsonify
import pickle
app = Flask(__name__)


@app.route('/', methods=['GET', 'POST'])
def front_end():
    return render_template('index.html')


@app.route('/notebook', methods=['POST'])
def prediction():
    data = request.get_json()
    pred = model_saved.predict(data)
    return jsonify(str(pred))


if __name__ == '__main__':
    MODEL_PATH = './models/model_saved.pkl'
    with open(MODEL_PATH, 'rb') as fid:
        model_saved = pickle.load(fid)
    app.run(debug=True)

69e956d5c6a30e57e71376aed0855ef3378cb018
<mask token>


@app.route('/', methods=['GET', 'POST'])
def front_end():
    return render_template('index.html')


<mask token>

<mask token>


@app.route('/', methods=['GET', 'POST'])
def front_end():
    return render_template('index.html')


@app.route('/notebook', methods=['POST'])
def prediction():
    data = request.get_json()
    pred = model_saved.predict(data)
    return jsonify(str(pred))


<mask token>

<mask token>


@app.route('/', methods=['GET', 'POST'])
def front_end():
    return render_template('index.html')


@app.route('/notebook', methods=['POST'])
def prediction():
    data = request.get_json()
    pred = model_saved.predict(data)
    return jsonify(str(pred))


if __name__ == '__main__':
    MODEL_PATH = './models/model_saved.pkl'
    with open(MODEL_PATH, 'rb') as fid:
        model_saved = pickle.load(fid)
    app.run(debug=True)

<mask token>
app = Flask(__name__)


@app.route('/', methods=['GET', 'POST'])
def front_end():
    return render_template('index.html')


@app.route('/notebook', methods=['POST'])
def prediction():
    data = request.get_json()
    pred = model_saved.predict(data)
    return jsonify(str(pred))


if __name__ == '__main__':
    MODEL_PATH = './models/model_saved.pkl'
    with open(MODEL_PATH, 'rb') as fid:
        model_saved = pickle.load(fid)
    app.run(debug=True)

from flask import Flask, render_template, request, jsonify
import pickle
app = Flask(__name__)


@app.route('/', methods=['GET', 'POST'])
def front_end():
    return render_template('index.html')


@app.route('/notebook', methods=['POST'])
def prediction():
    data = request.get_json()
    pred = model_saved.predict(data)
    return jsonify(str(pred))


if __name__ == '__main__':
    MODEL_PATH = './models/model_saved.pkl'
    with open(MODEL_PATH, 'rb') as fid:
        model_saved = pickle.load(fid)
    app.run(debug=True)
