Spaces:
Runtime error
Runtime error
File size: 728 Bytes
23c7824 f55f792 23c7824 c97a051 f55f792 7709e7b 23c7824 33e1b1c 23c7824 5943157 23c7824 5943157 23c7824 5943157 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import gradio as gr
from paintingface import generate
title = "Face from Photo into Handed-paint"
description = "Upload a photo, this Ai will detect and transfer only the main face into cartoon/anime handed-painting style. (If cannot detect a face, try the edit button on the right corner of the picture to crop the photo manually.)"
article = "Examples are from Internet"
Example=[['Example01.jpg'],['Example02.jpg'],['Example03.jpg']]
demo = gr.Interface(
generate,
inputs = [gr.Image(type="pil", label="Upload a photo")],
outputs= [gr.Image(type="pil", label="Output")],
title=title,
description=description,
article=article,
examples=Example,
allow_flagging='never'
)
demo.launch()
|