lmattingly13
add appy gradio file
2692b6e
raw
history blame
644 Bytes
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()