Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,9 +16,7 @@ prompt = st.text_input("Enter your image description:")
|
|
| 16 |
|
| 17 |
if st.button("Generate Image"):
|
| 18 |
if prompt:
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
image = pipe(prompt, num_inference_steps=15, generator=generator).images[0]
|
| 22 |
-
st.image(image, caption="Generated Image")
|
| 23 |
else:
|
| 24 |
st.warning("Please enter a prompt.")
|
|
|
|
| 16 |
|
| 17 |
if st.button("Generate Image"):
|
| 18 |
if prompt:
|
| 19 |
+
image = pipe(prompt, num_inference_steps=15).images[0]
|
| 20 |
+
st.image(image, caption="Generated image")
|
|
|
|
|
|
|
| 21 |
else:
|
| 22 |
st.warning("Please enter a prompt.")
|