quickfix far to eager logging calculation
This commit is contained in:
parent
05a28e4658
commit
1a06214267
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user