3mrology's picture
Update app.py
5acc1ac
raw
history blame
271 Bytes
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()