carlosabadia commited on
Commit
e7c8d5d
β€’
1 Parent(s): d400e64

moved detect face button

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -48,14 +48,14 @@ def interface() -> None:
48
  with gr.Row():
49
  image_in = gr.Image(
50
  label="Image input", interactive=True)
 
 
 
51
  with gr.Row():
52
  paths = [["examples/" + example]
53
  for example in os.listdir("examples")]
54
  example_images = gr.Dataset(components=([image_in]), label="Example images", samples=[[path]
55
  for path in paths])
56
- with gr.Row():
57
- detect_image_button = gr.Button(
58
- value="Detect face πŸ‘€")
59
  with gr.Column():
60
  with gr.Row():
61
  face_detected_image_out = gr.Image(
@@ -72,12 +72,12 @@ def interface() -> None:
72
  with gr.Row():
73
  webcam_image_in = gr.Webcam(
74
  label="Webcam input")
75
- with gr.Row():
76
- gr.Text(
77
- label="⚠️ Reminder ", value="Do not forget to click the camera button to freeze and get the webcam image πŸ“·!", interactive=False)
78
  with gr.Row():
79
  detect_button = gr.Button(
80
  value="Detect face πŸ‘€")
 
 
 
81
  with gr.Column():
82
  with gr.Row():
83
  face_detected_webcam_out = gr.Image(
 
48
  with gr.Row():
49
  image_in = gr.Image(
50
  label="Image input", interactive=True)
51
+ with gr.Row():
52
+ detect_image_button = gr.Button(
53
+ value="Detect face πŸ‘€")
54
  with gr.Row():
55
  paths = [["examples/" + example]
56
  for example in os.listdir("examples")]
57
  example_images = gr.Dataset(components=([image_in]), label="Example images", samples=[[path]
58
  for path in paths])
 
 
 
59
  with gr.Column():
60
  with gr.Row():
61
  face_detected_image_out = gr.Image(
 
72
  with gr.Row():
73
  webcam_image_in = gr.Webcam(
74
  label="Webcam input")
 
 
 
75
  with gr.Row():
76
  detect_button = gr.Button(
77
  value="Detect face πŸ‘€")
78
+ with gr.Row():
79
+ gr.Text(
80
+ label="⚠️ Reminder ", value="Do not forget to click the camera button to freeze and get the webcam image πŸ“·!", interactive=False)
81
  with gr.Column():
82
  with gr.Row():
83
  face_detected_webcam_out = gr.Image(