img-creator / app.py
Docty's picture
Update app.py
97d66c9 verified
raw
history blame
339 Bytes
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)