Mk1443 commited on
Commit
7c5739b
·
verified ·
1 Parent(s): 3e8234c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 measurements_df
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=None], # No output is displayed to the user
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
  )