Spaces:
Build error
Build error
carlosabadia
commited on
Commit
β’
e7c8d5d
1
Parent(s):
d400e64
moved detect face button
Browse files
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(
|