Skip to content

Commit

Permalink
resort wait tip
Browse files Browse the repository at this point in the history
  • Loading branch information
Jingyi committed Nov 17, 2023
1 parent d219dc8 commit a37c017
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/panel/image_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,16 @@ def get_llm_processed_prompts(initial_prompt):
)

conversation.prompt = sd_prompt

"""
Example:
[Positive Prompt: visually appealing, high-quality image of a big, large, muscular horse with powerful body, majestic stance, flowing mane, detailed texture, vivid color, striking photography.,
Negative Prompt: ugly, distorted, inappropriate or NSFW content,
Recommended Model List: ["sd_xl_base_1.0.safetensors"]]
"""

st.write("Wait for LLM to process the prompt...")

response = conversation.predict(input=initial_prompt)
logger.info("the first invoke: {}".format(response))
# logger.info("the second invoke: {}".format(conversation.predict(input="change to realist style")))
Expand Down Expand Up @@ -428,7 +432,7 @@ def generate_llm_image(initial_prompt: str, llm_prompt: bool = True):
negative = ""
models = default_models
if llm_prompt is True:
st.write("Wait for LLM to process the prompt...")

positive_prompt, negative_prompt, model_list = get_llm_processed_prompts(prompt)

# if prompt is empty, use default
Expand Down

0 comments on commit a37c017

Please sign in to comment.