Spaces:
Runtime error
Runtime error
lmattingly13
commited on
Commit
·
2692b6e
1
Parent(s):
8580e9d
add appy gradio file
Browse files
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
# inference function takes prompt, negative prompt and image
|
| 4 |
+
def infer(image, prompt):
|
| 5 |
+
# implement your inference function here
|
| 6 |
+
output_image = image
|
| 7 |
+
return output_image
|
| 8 |
+
|
| 9 |
+
title = "ControlNet for Cartoon-ifying"
|
| 10 |
+
description = "This is a demo on ControlNet for changing images of people into cartoons of different styles."
|
| 11 |
+
examples = [["./simpsons_human_10.png", "turn into a simpsons character", "./simpsons_animated_10.png"]]
|
| 12 |
+
|
| 13 |
+
gr.Interface(fn = infer, inputs = ["image", "text"], outputs = "image",
|
| 14 |
+
title = title, description = description, examples = examples, theme='gradio/soft').launch()
|