diff --git a/app.py b/app.py index 51b80c9..ff01868 100644 --- a/app.py +++ b/app.py @@ -22,16 +22,6 @@ def predict(): return render_template('index.html', prediction_text='Employee Salary should be $ {}'.format(output)) -@app.route('/predict_api',methods=['POST']) -def predict_api(): - ''' - For direct API calls trought request - ''' - data = request.get_json(force=True) - prediction = model.predict([np.array(list(data.values()))]) - - output = prediction[0] - return jsonify(output) if __name__ == "__main__": - app.run(debug=True) \ No newline at end of file + app.run(debug=True)