import gradio as gr ​ # inference function takes prompt, negative prompt and image def infer(image, prompt): # implement your inference function here output_image = image return output_image ​ title = "ControlNet for Cartoon-ifying" description = "This is a demo on ControlNet for changing images of people into cartoons of different styles." examples = [["./simpsons_human_10.png", "turn into a simpsons character", "./simpsons_animated_10.png"]] ​ gr.Interface(fn = infer, inputs = ["image", "text"], outputs = "image", title = title, description = description, examples = examples, theme='gradio/soft').launch()