Update app.py
Browse files
app.py
CHANGED
|
@@ -1442,25 +1442,8 @@ with gr.Blocks(title="🚗 Système de Reconnaissance de Véhicules Algériens",
|
|
| 1442 |
#############
|
| 1443 |
|
| 1444 |
################
|
| 1445 |
-
# Mettre à jour les connexions
|
| 1446 |
-
load_btn.click(
|
| 1447 |
-
fn=process_load,
|
| 1448 |
-
inputs=[input_type, file_input],
|
| 1449 |
-
outputs=[
|
| 1450 |
-
original_image,
|
| 1451 |
-
status_output,
|
| 1452 |
-
next_frame_btn,
|
| 1453 |
-
frame_gallery,
|
| 1454 |
-
frame_slider,
|
| 1455 |
-
load_frame_btn
|
| 1456 |
-
]
|
| 1457 |
-
)
|
| 1458 |
|
| 1459 |
-
|
| 1460 |
-
fn=load_selected_frame,
|
| 1461 |
-
inputs=[frame_slider],
|
| 1462 |
-
outputs=[original_image, status_output, next_frame_btn]
|
| 1463 |
-
)
|
| 1464 |
#####################
|
| 1465 |
|
| 1466 |
|
|
@@ -1503,14 +1486,6 @@ with gr.Blocks(title="🚗 Système de Reconnaissance de Véhicules Algériens",
|
|
| 1503 |
)
|
| 1504 |
|
| 1505 |
|
| 1506 |
-
next_frame_btn.click(
|
| 1507 |
-
fn=next_frame,
|
| 1508 |
-
outputs=[original_image, status_output,
|
| 1509 |
-
color_output, orientation_output,
|
| 1510 |
-
logo_output, model_output,
|
| 1511 |
-
plate_classification, vehicle_type_output]
|
| 1512 |
-
)
|
| 1513 |
-
|
| 1514 |
# Connecter les nouveaux composants
|
| 1515 |
time_range.change(
|
| 1516 |
fn=toggle_time_range,
|
|
|
|
| 1442 |
#############
|
| 1443 |
|
| 1444 |
################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1445 |
|
| 1446 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1447 |
#####################
|
| 1448 |
|
| 1449 |
|
|
|
|
| 1486 |
)
|
| 1487 |
|
| 1488 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1489 |
# Connecter les nouveaux composants
|
| 1490 |
time_range.change(
|
| 1491 |
fn=toggle_time_range,
|