From e7d229c0d70574cae316a841ab1377fae625ab15 Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Mon, 25 Apr 2022 14:07:19 +0200 Subject: [PATCH] fixed check for analysis result validity --- image_prediction/flask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_prediction/flask.py b/image_prediction/flask.py index 7ab4005..b1473da 100644 --- a/image_prediction/flask.py +++ b/image_prediction/flask.py @@ -63,7 +63,7 @@ def make_prediction_server(predict_fn: Callable): logger.info("Analysing...") predictions = predict_fn_wrapped(request.data) - if predictions: + if predictions is not None: response = jsonify(predictions) logger.info("Analysis completed.") return response