Testys commited on
Commit
128696e
Β·
verified Β·
1 Parent(s): 6eb3122

Update gradio_interface.py

Browse files
Files changed (1) hide show
  1. 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>πŸš— AI-Powered Driver Drowsiness Detection System</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
- mirror_webcam=False,
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