UdacityNoob commited on
Commit
9941bb0
1 Parent(s): 9db9ac7

Update prompts

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -31,7 +31,7 @@ with gr.Blocks() as demo:
31
  gr.HTML("<p style=\"font-size: 14; font-weight: normal\" align=\"left\">This model has been fine-tuned to learn the concept of Hogwarts Legacy student characters.<br>To use this demo, you should have append your prompt with string <q>hogwarts [legacy] student</q></p>")
32
  with gr.Row():
33
  with gr.Column():
34
- prompt = gr.Textbox(label="Positive Prompt", value="a digital art of hogwarts [legacy] student jumping up")
35
  negative_prompt = gr.Textbox(label="Negative Prompt", value="out of frame, blurry, cropped, noisy")
36
  samples = gr.Slider(label="Number of Images", minimum=1, maximum=6, value=4, step=1)
37
  inference_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=100, value=50, step=1)
@@ -42,8 +42,12 @@ with gr.Blocks() as demo:
42
 
43
  run.click(fn=generate_images, inputs=[prompt, negative_prompt, samples, inference_steps, guidance_scale], outputs=gallery)
44
 
45
- gr.Examples([["realistic painting of a hogwarts [legacy] student riding a horse, high quality, 8k", "bad, ugly, deformed, out of frame, blurry, cropped, noisy", 4, 100, 7.5],
46
- ["realistic painting of a hogwarts [legacy] student holding a wand, high quality, 8k", "bad, ugly, deformed, out of frame, blurry, cropped, noisy", 4, 100, 7.5]],
 
 
 
 
47
  [prompt, negative_prompt, samples, inference_steps, guidance_scale], gallery, generate_images, cache_examples=True)
48
  gr.Markdown('Demo created by [Terrence Goh](https://huggingface.co/tgohblio/)')
49
 
 
31
  gr.HTML("<p style=\"font-size: 14; font-weight: normal\" align=\"left\">This model has been fine-tuned to learn the concept of Hogwarts Legacy student characters.<br>To use this demo, you should have append your prompt with string <q>hogwarts [legacy] student</q></p>")
32
  with gr.Row():
33
  with gr.Column():
34
+ prompt = gr.Textbox(label="Positive Prompt", value="a photo of a female hogwarts [legacy] student posing outside hogwarts castle")
35
  negative_prompt = gr.Textbox(label="Negative Prompt", value="out of frame, blurry, cropped, noisy")
36
  samples = gr.Slider(label="Number of Images", minimum=1, maximum=6, value=4, step=1)
37
  inference_steps = gr.Slider(label="Inference Steps", minimum=1, maximum=100, value=50, step=1)
 
42
 
43
  run.click(fn=generate_images, inputs=[prompt, negative_prompt, samples, inference_steps, guidance_scale], outputs=gallery)
44
 
45
+ gr.Examples([["hyperrealistic photo of a smiling female hogwarts [legacy] student posing outside hogwarts castle, 4K, highly detailed, intricate outfit design, art by miho hirano",
46
+ "ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off",
47
+ 4, 100, 7.5],
48
+ ["digital art of a male hogwarts [legacy] student holding a wand, high quality, 8k",
49
+ "ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, bad anatomy, watermark, signature, cut off",
50
+ 4, 50, 7.5]],
51
  [prompt, negative_prompt, samples, inference_steps, guidance_scale], gallery, generate_images, cache_examples=True)
52
  gr.Markdown('Demo created by [Terrence Goh](https://huggingface.co/tgohblio/)')
53