This file contains 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"}) |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
done = False | |
highest_episode_reward = 3 | |
lasthundredscores = deque(maxlen=100) | |
lasthundredscores_history = [] |