fixed check for analysis result validity
This commit is contained in:
parent
ddd8d4685e
commit
e7d229c0d7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user