Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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
|
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:
|