update predict.py

This commit is contained in:
Brett Kuprel 2022-07-04 18:41:00 -04:00
parent d3beb3ab57
commit cf5b116284

View File

@ -32,7 +32,7 @@ class Predictor(BasePredictor):
),
) -> Path:
def handle_intermediate_image(i: int, image: Image.Image) -> Path:
def handle_intermediate_image(i: int, image: Image.Image):
if i + 1 == 16: return
out_path = Path(tempfile.mkdtemp()) / 'output.jpg'
image.save(str(out_path))