Ahsen Khaliq commited on
Commit
53f268c
1 Parent(s): e323e52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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 UGATIT-selfie2anime. 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/1907.10830' target='_blank'>U-GAT-IT: Unsupervised Generative Attentional Networks with Adaptive Layer-Instance Normalization for Image-to-Image Translation</a> | <a href='https://github.com/taki0112/UGATIT' target='_blank'>Github Repo</a></p>"
16
 
17
- 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)
 
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()