Print.
This commit is contained in:
parent
ef1884445a
commit
e2c7880ca2
|
@ -34,9 +34,11 @@ strategies = {
|
||||||
|
|
||||||
@app.route("/", methods=["GET", "POST"])
|
@app.route("/", methods=["GET", "POST"])
|
||||||
def probabilities():
|
def probabilities():
|
||||||
|
if request.method == 'GET':
|
||||||
|
logger.warning("GET request: using default context parameters")
|
||||||
phone_data = request.get_json(force=True)
|
phone_data = request.get_json(force=True)
|
||||||
context = Context(**phone_data)
|
|
||||||
logger.debug("phone_data:\n%s", json.dumps(phone_data, indent=2))
|
logger.debug("phone_data:\n%s", json.dumps(phone_data, indent=2))
|
||||||
|
context = Context(**phone_data)
|
||||||
logger.debug("Context: %s", context)
|
logger.debug("Context: %s", context)
|
||||||
|
|
||||||
predictions: List[dict] = []
|
predictions: List[dict] = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user