quickfix far to eager logging calculation

This commit is contained in:
Julius Unverfehrt 2022-02-22 08:39:24 +01:00
parent 05a28e4658
commit 1a06214267

View File

@ -60,7 +60,7 @@ def make_prediction_server(predict_fn: Callable):
logging.debug("Running predictor on document...")
predictions = predict_fn(pdf)
logging.debug(f"Found {sum(map(len, predictions))} images in document.")
logging.debug(f"Found {len(predictions)} images in document.")
response = jsonify(list(predictions))
return response