Update app.py
Browse files
app.py
CHANGED
@@ -24,12 +24,11 @@ def detect(img):
|
|
24 |
with gr.Blocks() as demo:
|
25 |
gr.Markdown("# yolov8目标检测演示")
|
26 |
|
27 |
-
with gr.
|
28 |
in_img = gr.Image(source='webcam',type='pil')
|
29 |
-
button = gr.Button("执行检测",variant="primary")
|
30 |
-
|
31 |
-
gr.Markdown("## 预测输出")
|
32 |
out_img = gr.Image(type='pil')
|
|
|
|
|
33 |
|
34 |
button.click(detect,
|
35 |
inputs=in_img,
|
|
|
24 |
with gr.Blocks() as demo:
|
25 |
gr.Markdown("# yolov8目标检测演示")
|
26 |
|
27 |
+
with gr.Row():
|
28 |
in_img = gr.Image(source='webcam',type='pil')
|
|
|
|
|
|
|
29 |
out_img = gr.Image(type='pil')
|
30 |
+
with gr.Row():
|
31 |
+
button = gr.Button("执行检测",variant="primary")
|
32 |
|
33 |
button.click(detect,
|
34 |
inputs=in_img,
|