Spaces:
Runtime error
Runtime error
File size: 270 Bytes
65e2446 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import gradio as gr
from diffusers import DiffusionPipeline
pipeline = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4")
iface = gr.Interface(
fn=predict,
inputs='text',
outputs='text',
examples=[["Hello! My name is Omar"]]
)
iface.launch() |