Spaces:
Sleeping
Sleeping
File size: 339 Bytes
c886058 97d66c9 |
1 2 3 4 5 6 7 8 9 10 11 |
import streamlit as st
st.title("Image Generation")
prompt = st.text_input("Enter a prompt to generate an image:", value="pipeline under the sea")
if st.button("Generate Image"):
with st.spinner("Generating image..."):
image = pipe(prompt).images[0]
st.image(image, caption="Generated Image", use_column_width=True) |