Skip to content

Commit

Permalink
Pass positive/negative prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Jul 7, 2023
1 parent a55b637 commit 5ba5cc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord_tron_client/classes/image_manipulation/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ def _run_pipeline(
# text2img workflow
if "ptx0/s1" in user_config.get("model", ""):
encoded_embeds = pipe.encode_prompt(
prompt=positive_prompt,
negative_prompt=negative_prompt,
device=self.pipeline_manager.device,
num_images_per_prompt=batch_size,
prompt_embeds=prompt_embed,
Expand Down

0 comments on commit 5ba5cc9

Please sign in to comment.