Remove deprecated allow_flagging for Gradio 6.x
Browse files
app.py
CHANGED
|
@@ -28,7 +28,6 @@ iface = gr.Interface(
|
|
| 28 |
outputs=gr.JSON(label="Violation Results"),
|
| 29 |
title="Traffic Rule Violation Detection API",
|
| 30 |
description="Upload an image to detect traffic violations. Supports two-wheelers (helmet, over-riding, wrong-way) and four-wheelers (seatbelt, wrong-way). Detects and runs OCR on the license plates of violating vehicles.\n\nThis application can be accessed programmatically via its built-in API.",
|
| 31 |
-
allow_flagging="never"
|
| 32 |
)
|
| 33 |
|
| 34 |
if __name__ == "__main__":
|
|
|
|
| 28 |
outputs=gr.JSON(label="Violation Results"),
|
| 29 |
title="Traffic Rule Violation Detection API",
|
| 30 |
description="Upload an image to detect traffic violations. Supports two-wheelers (helmet, over-riding, wrong-way) and four-wheelers (seatbelt, wrong-way). Detects and runs OCR on the license plates of violating vehicles.\n\nThis application can be accessed programmatically via its built-in API.",
|
|
|
|
| 31 |
)
|
| 32 |
|
| 33 |
if __name__ == "__main__":
|