UdacityNoob commited on
Commit
6580a05
1 Parent(s): bcbcd98

Update formatting of title and description, update example prompt

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -27,9 +27,8 @@ def generate_images(prompt: str, negative_prompt: str, num_imgs_to_gen: int, inf
27
 
28
  # Define the UI
29
  with gr.Blocks() as demo:
30
- gr.HTML("<h2 style=\"font-size: 2rem; font-weight: 700; text-align: center;\">Keras Dreambooth - Hogwarts Legacy Demo</h2>")
31
- gr.HTML("<h3 style=\"font-size: 2rem; font-weight: 700; text-align: left;\">This model has been fine-tuned to learn the concept of Hogwarts Legacy student characters. \
32
- To use this demo, you should have append your prompt with string \'hogwarts [legacy] student\'</h3>")
33
  with gr.Row():
34
  with gr.Column():
35
  prompt = gr.Textbox(label="Positive Prompt", value="a digital art of hogwarts [legacy] student in a forest")
@@ -43,7 +42,8 @@ with gr.Blocks() as demo:
43
 
44
  run.click(fn=generate_images, inputs=[prompt, negative_prompt, samples, inference_steps, guidance_scale], outputs=gallery)
45
 
46
- gr.Examples([["realistic painting of a hogwarts [legacy] student riding a horse, high quality, 8k", "bad, ugly, malformed, 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
 
 
27
 
28
  # Define the UI
29
  with gr.Blocks() as demo:
30
+ gr.HTML("<h2 style=\"font-size: 2em; font-weight: bold\" align=\"center\">Keras Dreambooth - Hogwarts Legacy Demo</h2>")
31
+ gr.HTML("<h3 style=\"font-size: 2em; 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></h3>")
 
32
  with gr.Row():
33
  with gr.Column():
34
  prompt = gr.Textbox(label="Positive Prompt", value="a digital art of hogwarts [legacy] student in a forest")
 
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, malformed, 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