ParahumanSkitter commited on
Commit
8ed3d38
·
verified ·
1 Parent(s): a488c55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -77,13 +77,13 @@ def gen_fn(model_str, prompt, negative_prompt, guidance_scale, seed, clip_skip,
77
 
78
  def insert_example_prompt(txt_input):
79
  example_prompt = "Masterpiece, Highest Quality, Best Quality, Eye Catching, Award Winning, General, 1Girl, Long Black Hair, Wavy And Curly Hair, Green Eyes, Square Rimmed Glasses, Slim Bodied, Tall, Lithe, Petite, Smiling At Viewer, Looking At Viewer, Business Casual Clothing"
80
- txt_input.value = example_prompt
81
 
82
  def make_me():
83
  with gr.Blocks(css=custom_css) as demo:
84
  # Add text and HTML link at the top
85
  gr.Markdown("# Before you generate: Illustrious Diffusion uses a different prompting style than Pony Diffusion, relying less on booru tags and more on detail-oriented, natural language style prompts, please refer to the link provided for a guide on Illustrious prompting.")
86
- gr.HTML('<p>Useful guide for how to prompt for Illustrious: <a href="https://civitai.com/articles/8380/tips-for-illustrious-xl-prompting-updates" target="_blank">https://civitai.com/articles/8380/tips-for-illustrious-xl-prompting-updates</a>.</p>')
87
 
88
  with gr.Row():
89
  with gr.Column(scale=1):
@@ -127,7 +127,7 @@ def make_me():
127
  # Add the clickable element at the bottom
128
  with gr.Row():
129
  insert_example_button = gr.Button('Insert Example Prompt', variant='primary')
130
- insert_example_button.click(insert_example_prompt, inputs=[], outputs=[txt_input])
131
 
132
  return demo
133
 
 
77
 
78
  def insert_example_prompt(txt_input):
79
  example_prompt = "Masterpiece, Highest Quality, Best Quality, Eye Catching, Award Winning, General, 1Girl, Long Black Hair, Wavy And Curly Hair, Green Eyes, Square Rimmed Glasses, Slim Bodied, Tall, Lithe, Petite, Smiling At Viewer, Looking At Viewer, Business Casual Clothing"
80
+ return example_prompt
81
 
82
  def make_me():
83
  with gr.Blocks(css=custom_css) as demo:
84
  # Add text and HTML link at the top
85
  gr.Markdown("# Before you generate: Illustrious Diffusion uses a different prompting style than Pony Diffusion, relying less on booru tags and more on detail-oriented, natural language style prompts, please refer to the link provided for a guide on Illustrious prompting.")
86
+ gr.HTML('<p>Useful guide for how to prompt for Illustrious: <a href="https://civitai.com/articles/8380/tips-for-illustrious-xl-prompting-updates" target="_blank">Tips for Illustrious XL Prompting Updates</a>.</p>')
87
 
88
  with gr.Row():
89
  with gr.Column(scale=1):
 
127
  # Add the clickable element at the bottom
128
  with gr.Row():
129
  insert_example_button = gr.Button('Insert Example Prompt', variant='primary')
130
+ insert_example_button.click(insert_example_prompt, inputs=[txt_input], outputs=[txt_input])
131
 
132
  return demo
133