Spaces:
Runtime error
Runtime error
| 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_1.jpg", "turn into a simpsons character", "./simpsons_animated_1.jpg"]] | |
| β | |
| gr.Interface(fn = infer, inputs = ["image", "text"], outputs = "image", | |
| title = title, description = description, examples = examples, theme='gradio/soft').launch() |