Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,16 +76,16 @@ def process_images(front_img, side_img, real_height_cm):
|
|
| 76 |
interface = gr.Interface(
|
| 77 |
fn=process_images,
|
| 78 |
inputs=[
|
| 79 |
-
gr.Image(label="
|
| 80 |
-
gr.Image(label="
|
| 81 |
-
gr.Number(label="Enter Height (cm)")
|
| 82 |
],
|
| 83 |
outputs=[
|
| 84 |
-
gr.DataFrame(label="Body Measurements")
|
| 85 |
],
|
| 86 |
title="Body Sizing System Demo",
|
| 87 |
description="Upload two images: Front View and Side View, and input the height in cm."
|
| 88 |
)
|
| 89 |
|
| 90 |
# Launch the app
|
| 91 |
-
interface.launch(share=
|
|
|
|
| 76 |
interface = gr.Interface(
|
| 77 |
fn=process_images,
|
| 78 |
inputs=[
|
| 79 |
+
gr.Image(source="webcam",label="Front Pose")
|
| 80 |
+
gr.Image(source="webcam",label="Side Pose"),
|
| 81 |
+
gr.Number(label="Enter Your Height (cm)")
|
| 82 |
],
|
| 83 |
outputs=[
|
| 84 |
+
gr.DataFrame(label="Body Size Measurements")
|
| 85 |
],
|
| 86 |
title="Body Sizing System Demo",
|
| 87 |
description="Upload two images: Front View and Side View, and input the height in cm."
|
| 88 |
)
|
| 89 |
|
| 90 |
# Launch the app
|
| 91 |
+
interface.launch(share=True)
|