Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,14 +51,14 @@ def main():
|
|
51 |
iface = gr.Interface(
|
52 |
fn=run_mediapipe,
|
53 |
inputs=[
|
54 |
-
gr.
|
55 |
-
gr.
|
56 |
solutions,
|
57 |
type='value',
|
58 |
default=solutions[0],
|
59 |
label='Solutions'
|
60 |
),
|
61 |
-
gr.
|
62 |
0,
|
63 |
1,
|
64 |
step=0.05,
|
@@ -66,7 +66,7 @@ def main():
|
|
66 |
label='Minimum Detection Confidence'
|
67 |
)
|
68 |
],
|
69 |
-
outputs=gr.
|
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
|