Taizun commited on
Commit
05811a6
·
verified ·
1 Parent(s): 00327d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ def image_generation(pipe, prompt, negative_prompt):
18
  image = pipe(
19
  prompt=prompt,
20
  negative_prompt="blurred, ugly, watermark, low resolution" + negative_prompt,
21
- num_inference_steps=20,
22
  guidance_scale=9.0
23
  ).images[0]
24
  return image
@@ -110,7 +110,7 @@ if style_name:
110
  selected_style_negative_prompt = selected_entry["negative_prompt"]
111
 
112
  # Button to trigger image generation
113
- if st.button("Generate Awesome Image"):
114
  with st.spinner("Generating your awesome image..."):
115
  image = image_generation(pipeline, prompt + selected_style_prompt, selected_style_negative_prompt)
116
  if image:
 
18
  image = pipe(
19
  prompt=prompt,
20
  negative_prompt="blurred, ugly, watermark, low resolution" + negative_prompt,
21
+ num_inference_steps=12,
22
  guidance_scale=9.0
23
  ).images[0]
24
  return image
 
110
  selected_style_negative_prompt = selected_entry["negative_prompt"]
111
 
112
  # Button to trigger image generation
113
+ if st.button("Generate Image"):
114
  with st.spinner("Generating your awesome image..."):
115
  image = image_generation(pipeline, prompt + selected_style_prompt, selected_style_negative_prompt)
116
  if image: