Ahsen Khaliq
commited on
Commit
·
53f268c
1
Parent(s):
e323e52
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,9 @@ def inference(image):
|
|
11 |
return Image.fromarray(np.uint8(result['data'])[:,:,::-1]).convert('RGB')
|
12 |
|
13 |
title = "OpenPose"
|
14 |
-
description = "Gradio demo for
|
15 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/
|
16 |
|
17 |
-
|
|
|
18 |
iface.launch()
|
|
|
11 |
return Image.fromarray(np.uint8(result['data'])[:,:,::-1]).convert('RGB')
|
12 |
|
13 |
title = "OpenPose"
|
14 |
+
description = "Gradio demo for OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
15 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1812.08008' target='_blank'>OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields</a> | <a href='https://github.com/CMU-Perceptual-Computing-Lab/openpose' target='_blank'>Github Repo</a></p>"
|
16 |
|
17 |
+
examples=[['people.jpeg']]
|
18 |
+
iface = gr.Interface(inference, inputs=gr.inputs.Image(type="file"), outputs=gr.outputs.Image(type="pil"),enable_queue=True,title=title,article=article,description=description,examples=examples)
|
19 |
iface.launch()
|