Skip to content

Commit

Permalink
Update default prompt for SDXL examples (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
aksh-at authored Feb 28, 2024
1 parent ec59602 commit f8e9c26
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 06_gpu_and_ml/stable_diffusion/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2 class="text-3xl font-medium text-center mb-10">
<script>
function state() {
return {
prompt: "a beautiful Japanese temple, butterflies flying around",
prompt: "{{ default_prompt }}",
submitted: "",
loading: false,
imageURL: "",
Expand Down
1 change: 1 addition & 0 deletions 06_gpu_and_ml/stable_diffusion/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def app():
html = template.render(
inference_url=Model.inference.web_url,
model_name="Playground 2.5",
default_prompt="Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
)
f.write(html)

Expand Down
1 change: 1 addition & 0 deletions 06_gpu_and_ml/stable_diffusion/stable_diffusion_xl.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def app():
html = template.render(
inference_url=Model.inference.web_url,
model_name="Stable Diffusion XL",
default_prompt="A cinematic shot of a baby racoon wearing an intricate italian priest robe.",
)
f.write(html)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def app():
html = template.render(
inference_url=Model.inference.web_url,
model_name="SDXL Lightning",
default_prompt="A cinematic shot of a baby racoon wearing an intricate italian priest robe.",
)
f.write(html)

Expand Down

0 comments on commit f8e9c26

Please sign in to comment.