File size: 307 Bytes
f41c220
32b2b28
f41c220
32b2b28
 
f41c220
32b2b28
 
 
f41c220
1
2
3
4
5
6
7
8
9
10
import gradio as gr
from diffusers import DiffusionPipeline

def generate(prompt, negative_prompt):
    pipeline = DiffusionPipeline.from_pretrained("Lykon/DreamShaper")

    return pipeline(prompt, negative_prompt).images[0]

iface = gr.Interface(fn=generate, inputs="text", outputs="image")
iface.launch()