Spaces:
Runtime error
Runtime error
import gradio as gr | |
from diffusers import DiffusionPipeline | |
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5") | |
def generate(prompt): | |
return pipeline(prompt) | |
iface = gr.Interface(fn=generate, inputs="text", outputs="image") | |
iface.launch() |