Spaces:
Runtime error
Runtime error
File size: 272 Bytes
bae4e49 faa1191 5a7fdf6 ed48307 7865c12 faa1191 bae4e49 faa1191 | 1 2 3 4 5 6 7 8 9 10 | from diffusers import StableDiffusionPipeline
import streamlit as st
import torch
generator = StableDiffusionPipeline.from_pretrained("AMAN-B/Demo-Dreambooth").to("cuda")
prompt = st.text_area("enter prompt")
if text:
image = generator(prompt).images[0]
st.json(image) |