Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,10 +130,10 @@ def detect_and_classify_pose(input_image, complexity, confidence, background_col
|
|
| 130 |
iface = gr.Interface(
|
| 131 |
fn=detect_and_classify_pose,
|
| 132 |
inputs=[
|
| 133 |
-
gr.
|
| 134 |
-
gr.
|
| 135 |
-
gr.
|
| 136 |
-
gr.
|
| 137 |
],
|
| 138 |
outputs=["image", "text"],
|
| 139 |
title="Live Yoga Pose Detection and Classification",
|
|
|
|
| 130 |
iface = gr.Interface(
|
| 131 |
fn=detect_and_classify_pose,
|
| 132 |
inputs=[
|
| 133 |
+
gr.Image(type="numpy", label="Upload an Image"),
|
| 134 |
+
gr.Slider(minimum=0, maximum=2, value=1, label="Model Complexity"),
|
| 135 |
+
gr.Slider(minimum=0.1, maximum=1.0, value=0.5, label="Detection Confidence"),
|
| 136 |
+
gr.Radio(choices=['White', 'Green', 'Black'], value='White', label="Background Color")
|
| 137 |
],
|
| 138 |
outputs=["image", "text"],
|
| 139 |
title="Live Yoga Pose Detection and Classification",
|