Skip to content

Commit

Permalink
Merge pull request #1 from chigozienri/negative-prompt
Browse files Browse the repository at this point in the history
Add negative_prompt
  • Loading branch information
lucataco committed Nov 10, 2023
2 parents 78b1a47 + c186628 commit d4ea9e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def predict(
description="Prompt",
default="photo of a beautiful girl wearing casual shirt in a garden"
),
negative_prompt: str = Input(
description="Negative Prompt",
default="monochrome, lowres, bad anatomy, worst quality, low quality"
),
num_outputs: int = Input(
description="Number of images to output.",
ge=1,
Expand Down Expand Up @@ -70,7 +74,8 @@ def predict(
num_samples=num_outputs,
num_inference_steps=num_inference_steps,
seed=seed,
prompt=prompt
prompt=prompt,
negative_prompt=negative_prompt
)

output_paths = []
Expand Down

0 comments on commit d4ea9e1

Please sign in to comment.