Spaces:
Runtime error
Runtime error
Ahsen Khaliq commited on
Commit ·
da81006
1
Parent(s): 5842467
Update app.py
Browse files1234561 unmodified line8910111213142 unmodified lines1718192021import gradio as grimport osdef inference(image):os.system("python -m openpifpaf.predict "+image.name+" --checkpoint=shufflenetv2k30-wholebody --line-width=2 -o out.jpg")return "out.jpg"1 unmodified linetitle = "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/2104.05703'>Adversarial Open Domain Adaption for Sketch-to-Photo Synthesis</a> | <a href='https://github.com/Mukosame/Anime2Sketch'>Github Repo</a></p>"gr.Interface(inference,2 unmodified linestitle=title,description=description,article=article,enable_queue=True).launch(debug=True)123456781 unmodified line1011121314151617182 unmodified lines212223242526import gradio as grimport osos.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"1 unmodified linetitle = "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,2 unmodified linestitle=title,description=description,article=article,enable_queue=True,examples=examples).launch(debug=True)
app.py+7-2