Spaces:
Build error
Build error
TzuShianYang
commited on
Commit
·
27e2fc3
1
Parent(s):
a31010b
Fix webcam mirror
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 36 |
with gr.Row():
|
| 37 |
with gr.Column():
|
| 38 |
camera = gr.Image(type="pil", format="png", webcam_constraints={
|
| 39 |
-
"video": {"width": 640, "height": 640}}, sources="webcam", scale=0)
|
| 40 |
catch_btn = gr.Button("Capture", scale=0)
|
| 41 |
with gr.Column():
|
| 42 |
preview_img = gr.Image(visible=False)
|
|
|
|
| 36 |
with gr.Row():
|
| 37 |
with gr.Column():
|
| 38 |
camera = gr.Image(type="pil", format="png", webcam_constraints={
|
| 39 |
+
"video": {"width": 640, "height": 640}}, sources="webcam", mirror_webcam=False, scale=0)
|
| 40 |
catch_btn = gr.Button("Capture", scale=0)
|
| 41 |
with gr.Column():
|
| 42 |
preview_img = gr.Image(visible=False)
|