fixed check for analysis result validity

This commit is contained in:
Matthias Bisping 2022-04-25 14:07:19 +02:00
parent ddd8d4685e
commit e7d229c0d7

View File

@ -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