Spaces:
Build error
Build error
File size: 867 Bytes
dab5d0e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
import gradio as gr
from huggingface_hub import hf_hub_url, cached_download
def load_model():
REPO_ID = "MalchuL/JJBAGAN"
FILENAME = "198_jjba_8_k_2_099_ep.onnx"
global model
model = cached_download(
hf_hub_url(REPO_ID, FILENAME)
)
return model
def inference(img):
return img
title = "JJStyleTransfer"
description = "Gradio Demo for JoJo Bizzare Adventures 5 season style transfer. To use it, simply upload your image, or click one of the examples to load them."
article = "Github Repo Pytorch "
examples = [['demo/karin.jpg'],
['demo/tucker.png'],
['demo/biden.jpg']]
demo = gr.Interface(
fn=inference,
inputs=[gr.inputs.Image(type="pil")],
outputs=gr.outputs.Image(type="pil"),
title=title,
description=description,
article=article,
examples=examples)
demo.launch()
|