Spaces:
Runtime error
Runtime error
Update gradio_interface.py
Browse files- gradio_interface.py +3 -3
gradio_interface.py
CHANGED
|
@@ -97,9 +97,8 @@ class GradioWebRTCInterface:
|
|
| 97 |
|
| 98 |
gr.HTML("""
|
| 99 |
<div class="header-text">
|
| 100 |
-
<h1>π
|
| 101 |
<p><strong>Real-time monitoring with OpenCV, Computer Vision & AI Alerts</strong></p>
|
| 102 |
-
<p><em>No external model downloads required - Uses built-in OpenCV detection</em></p>
|
| 103 |
</div>
|
| 104 |
""")
|
| 105 |
|
|
@@ -107,11 +106,12 @@ class GradioWebRTCInterface:
|
|
| 107 |
with gr.Row():
|
| 108 |
with gr.Column(scale=2):
|
| 109 |
# WebRTC video input
|
|
|
|
| 110 |
video_input = gr.Video(
|
| 111 |
label="πΉ Camera Feed (WebRTC Streaming)",
|
| 112 |
sources=["webcam"],
|
| 113 |
streaming=True,
|
| 114 |
-
|
| 115 |
height=480
|
| 116 |
)
|
| 117 |
|
|
|
|
| 97 |
|
| 98 |
gr.HTML("""
|
| 99 |
<div class="header-text">
|
| 100 |
+
<h1>π Drive Paddy/h1>
|
| 101 |
<p><strong>Real-time monitoring with OpenCV, Computer Vision & AI Alerts</strong></p>
|
|
|
|
| 102 |
</div>
|
| 103 |
""")
|
| 104 |
|
|
|
|
| 106 |
with gr.Row():
|
| 107 |
with gr.Column(scale=2):
|
| 108 |
# WebRTC video input
|
| 109 |
+
webcam_options = gr.WebcamOptions(mirror=False)
|
| 110 |
video_input = gr.Video(
|
| 111 |
label="πΉ Camera Feed (WebRTC Streaming)",
|
| 112 |
sources=["webcam"],
|
| 113 |
streaming=True,
|
| 114 |
+
webcam_options=webcam_options
|
| 115 |
height=480
|
| 116 |
)
|
| 117 |
|