Mk1443 commited on
Commit
5f3d947
·
verified ·
1 Parent(s): ee83b99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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="Upload Front Pose"),
80
- gr.Image(label="Upload Side Pose"),
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=False)
 
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)