Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def process_images(front_img, side_img, real_height_cm):
|
|
65 |
# Append to the existing file
|
66 |
measurements_df.to_csv(csv_file, mode='a', header=False, index=False)
|
67 |
|
68 |
-
return
|
69 |
|
70 |
# Create the Gradio interface
|
71 |
interface = gr.Interface(
|
@@ -74,8 +74,8 @@ interface = gr.Interface(
|
|
74 |
gr.Image(sources="webcam", type="numpy", label="Front Pose"),
|
75 |
gr.Image(sources="webcam", type="numpy", label="Side Pose"),
|
76 |
gr.Number(label="Enter Your Height (cm)")
|
77 |
-
],
|
78 |
-
outputs=
|
79 |
title="Body Sizing System Demo",
|
80 |
description="Capture two webcam images: Front View and Side View, and input your height in cm."
|
81 |
)
|
|
|
65 |
# Append to the existing file
|
66 |
measurements_df.to_csv(csv_file, mode='a', header=False, index=False)
|
67 |
|
68 |
+
return "Your body part measured and saved to the database."
|
69 |
|
70 |
# Create the Gradio interface
|
71 |
interface = gr.Interface(
|
|
|
74 |
gr.Image(sources="webcam", type="numpy", label="Front Pose"),
|
75 |
gr.Image(sources="webcam", type="numpy", label="Side Pose"),
|
76 |
gr.Number(label="Enter Your Height (cm)")
|
77 |
+
],
|
78 |
+
outputs=gr.Textbox(label="Confirmation Message"), # Confirmation message output
|
79 |
title="Body Sizing System Demo",
|
80 |
description="Capture two webcam images: Front View and Side View, and input your height in cm."
|
81 |
)
|