a guest Sep 19th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from __future__ import absolute_import, division, print_function
- from flask import Flask, jsonify, request
- from flask_cors import CORS
- import model
- app = Flask(__name__)
- @app.route('/niche_classifier/', methods=['GET'])
- def classification():
- folderpath = request.args["folderpath"]
- return jsonify(model.calculate_score(folderpath))
- def hello_world():
- return 'Hello World'
- if __name__ == '__main__':
- app.run(host='0.0.0.0', port=2002, debug=False)
RAW Paste Data