Spaces:
Sleeping
Sleeping
File size: 423 Bytes
c886058 63ed18c c886058 63ed18c 97d66c9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import streamlit as st
from diffusers import DiffusionPipeline, DPMSolverMultistepScheduler
import torch
st.title("Image Generation 2")
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) |