Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -69,8 +69,8 @@ def process_images(front_img, side_img, real_height_cm):
|
|
69 |
interface = gr.Interface(
|
70 |
fn=process_images,
|
71 |
inputs=[
|
72 |
-
gr.Image(sources="webcam", type="numpy", label="Front Pose"),
|
73 |
-
gr.Image(sources="webcam", type="numpy", label="Side Pose"),
|
74 |
gr.Number(label="Enter Your Height (cm)")
|
75 |
],
|
76 |
outputs=gr.HTML(label="Measurement Results"), # Use HTML output to display the measurements
|
|
|
69 |
interface = gr.Interface(
|
70 |
fn=process_images,
|
71 |
inputs=[
|
72 |
+
gr.Image(sources=["webcam", "upload"], type="numpy", label="Front Pose"),
|
73 |
+
gr.Image(sources=["webcam", "upload"], type="numpy", label="Side Pose"),
|
74 |
gr.Number(label="Enter Your Height (cm)")
|
75 |
],
|
76 |
outputs=gr.HTML(label="Measurement Results"), # Use HTML output to display the measurements
|