fs
Browse files
app.py
CHANGED
|
@@ -403,8 +403,7 @@ def create_gradio_interface():
|
|
| 403 |
with gr.Column(scale=1):
|
| 404 |
input_image = gr.Image(
|
| 405 |
label="Input Image",
|
| 406 |
-
type="numpy"
|
| 407 |
-
height=400
|
| 408 |
)
|
| 409 |
|
| 410 |
model_dropdown = gr.Dropdown(
|
|
@@ -429,8 +428,7 @@ def create_gradio_interface():
|
|
| 429 |
output_image = gr.Image(
|
| 430 |
label="Detection Result",
|
| 431 |
type="pil",
|
| 432 |
-
show_label=False
|
| 433 |
-
height=400
|
| 434 |
)
|
| 435 |
|
| 436 |
metrics_output = gr.Textbox(
|
|
@@ -466,8 +464,7 @@ def create_gradio_interface():
|
|
| 466 |
with gr.Row():
|
| 467 |
with gr.Column(scale=1):
|
| 468 |
input_video = gr.Video(
|
| 469 |
-
label="Input Video"
|
| 470 |
-
height=400
|
| 471 |
)
|
| 472 |
|
| 473 |
video_model_dropdown = gr.Dropdown(
|
|
@@ -494,8 +491,7 @@ def create_gradio_interface():
|
|
| 494 |
output_video = gr.Video(
|
| 495 |
label="Processed Video",
|
| 496 |
autoplay=True,
|
| 497 |
-
show_label=False
|
| 498 |
-
height=400
|
| 499 |
)
|
| 500 |
|
| 501 |
video_metrics_output = gr.Textbox(
|
|
@@ -556,8 +552,7 @@ def create_gradio_interface():
|
|
| 556 |
label="Webcam",
|
| 557 |
type="numpy",
|
| 558 |
streaming=True,
|
| 559 |
-
show_label=False
|
| 560 |
-
height=400
|
| 561 |
)
|
| 562 |
|
| 563 |
webcam_model_dropdown = gr.Dropdown(
|
|
@@ -580,8 +575,7 @@ def create_gradio_interface():
|
|
| 580 |
webcam_output = gr.Image(
|
| 581 |
label="Detection Result",
|
| 582 |
type="pil",
|
| 583 |
-
show_label=False
|
| 584 |
-
height=400
|
| 585 |
)
|
| 586 |
|
| 587 |
webcam_metrics_output = gr.Textbox(
|
|
|
|
| 403 |
with gr.Column(scale=1):
|
| 404 |
input_image = gr.Image(
|
| 405 |
label="Input Image",
|
| 406 |
+
type="numpy"
|
|
|
|
| 407 |
)
|
| 408 |
|
| 409 |
model_dropdown = gr.Dropdown(
|
|
|
|
| 428 |
output_image = gr.Image(
|
| 429 |
label="Detection Result",
|
| 430 |
type="pil",
|
| 431 |
+
show_label=False
|
|
|
|
| 432 |
)
|
| 433 |
|
| 434 |
metrics_output = gr.Textbox(
|
|
|
|
| 464 |
with gr.Row():
|
| 465 |
with gr.Column(scale=1):
|
| 466 |
input_video = gr.Video(
|
| 467 |
+
label="Input Video"
|
|
|
|
| 468 |
)
|
| 469 |
|
| 470 |
video_model_dropdown = gr.Dropdown(
|
|
|
|
| 491 |
output_video = gr.Video(
|
| 492 |
label="Processed Video",
|
| 493 |
autoplay=True,
|
| 494 |
+
show_label=False
|
|
|
|
| 495 |
)
|
| 496 |
|
| 497 |
video_metrics_output = gr.Textbox(
|
|
|
|
| 552 |
label="Webcam",
|
| 553 |
type="numpy",
|
| 554 |
streaming=True,
|
| 555 |
+
show_label=False
|
|
|
|
| 556 |
)
|
| 557 |
|
| 558 |
webcam_model_dropdown = gr.Dropdown(
|
|
|
|
| 575 |
webcam_output = gr.Image(
|
| 576 |
label="Detection Result",
|
| 577 |
type="pil",
|
| 578 |
+
show_label=False
|
|
|
|
| 579 |
)
|
| 580 |
|
| 581 |
webcam_metrics_output = gr.Textbox(
|