Created
February 5, 2019 16:19
-
-
Save Skorkmaz88/b60d10b7ade07b5971c13c5b67447a6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask import Flask, jsonify | |
| import simplejson as json | |
| app = Flask(__name__) | |
| @app.route('/heartbeat', methods=['GET', 'POST']) | |
| def heart_beat(): | |
| """ Returns when server is alive """ | |
| return json.dumps( {"test": "ML server is alive"}) | |
| if __name__ == '__main__': | |
| app.run(debug=True, port=5002, host="0.0.0.0") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment