Update predict.py

This commit is contained in:
Stephan Auerhahn 2022-07-26 22:58:23 -07:00 committed by GitHub
parent e0067c5132
commit 634a513ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -486,7 +486,7 @@ class Predictor(BasePredictor):
description="Run both stages (uncheck to run more quickly and output only a few frames)", default=True
),
use_guidance: bool = Input(description="Use stage 1 guidance (recommended)", default=True),
image_prompt: Path = Input(description="Starting image")
image_prompt: Path = Input(description="Starting image", default=None)
) -> typing.Iterator[Path]:
if translate:
prompt = self.translator.translate(prompt.strip())