Spaces:
Runtime error
Runtime error
import gradio as gr | |
import os | |
os.system("wget https://github.com/DuncanZauss/Keypoint_Communities/blob/main/docs/soccer.jpeg") | |
def inference(image): | |
os.system("python -m openpifpaf.predict "+image.name+" --checkpoint=shufflenetv2k30-wholebody --line-width=2 -o out.jpg") | |
return "out.jpg" | |
title = "Keypoint Communities" | |
description = "Gradio demo for Keypoint Communities. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below." | |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2110.00988'>Keypoint Communities</a> | <a href='https://github.com/DuncanZauss/Keypoint_Communities'>Github Repo</a></p>" | |
examples=[['soccer.jpeg']] | |
gr.Interface( | |
inference, | |
gr.inputs.Image(type="file", label="Input"), | |
gr.outputs.Image(type="file", label="Output"), | |
title=title, | |
description=description, | |
article=article, | |
enable_queue=True, | |
examples=examples | |
).launch(debug=True) |