innat commited on
Commit
1cc4915
1 Parent(s): fb4f6aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -51,14 +51,14 @@ def main():
51
  iface = gr.Interface(
52
  fn=run_mediapipe,
53
  inputs=[
54
- gr.inputs.Image(label="Input Image"),
55
- gr.inputs.Radio(
56
  solutions,
57
  type='value',
58
  default=solutions[0],
59
  label='Solutions'
60
  ),
61
- gr.inputs.Slider(
62
  0,
63
  1,
64
  step=0.05,
@@ -66,7 +66,7 @@ def main():
66
  label='Minimum Detection Confidence'
67
  )
68
  ],
69
- outputs=gr.outputs.Image(label="MediaPipe", type='numpy'),
70
  title="Google MediaPipe Demo",
71
  description="Few solutions of <a href='https://mediapipe.dev/'>Google MediaPipe</a> are presented here. Note, to test `Objectron` model, make sure to ensure <a href='https://github.com/google/mediapipe/blob/master/mediapipe/python/solutions/objectron.py#L128-L133'>Model Type</a>. Currently it only supports `Shoe`, `Chair`, `Cup` and `Camera` object.",
72
  examples=sample_images
 
51
  iface = gr.Interface(
52
  fn=run_mediapipe,
53
  inputs=[
54
+ gr.Image(label="Input Image"),
55
+ gr.Radio(
56
  solutions,
57
  type='value',
58
  default=solutions[0],
59
  label='Solutions'
60
  ),
61
+ gr.Slider(
62
  0,
63
  1,
64
  step=0.05,
 
66
  label='Minimum Detection Confidence'
67
  )
68
  ],
69
+ outputs=gr.Image(label="MediaPipe", type='numpy'),
70
  title="Google MediaPipe Demo",
71
  description="Few solutions of <a href='https://mediapipe.dev/'>Google MediaPipe</a> are presented here. Note, to test `Objectron` model, make sure to ensure <a href='https://github.com/google/mediapipe/blob/master/mediapipe/python/solutions/objectron.py#L128-L133'>Model Type</a>. Currently it only supports `Shoe`, `Chair`, `Cup` and `Camera` object.",
72
  examples=sample_images