Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -882,7 +882,7 @@ if __name__ == "__main__":
|
|
| 882 |
with gr.Tab("Webcam"):
|
| 883 |
gr.Markdown("Use your webcam or mobile camera for real-time drowsiness detection")
|
| 884 |
with gr.Row():
|
| 885 |
-
webcam_input = gr.Image(
|
| 886 |
webcam_output = gr.Image(label="Processed Feed")
|
| 887 |
with gr.Row():
|
| 888 |
speed_input = gr.Slider(minimum=0, maximum=150, value=60, label="Current Speed (km/h)")
|
|
|
|
| 882 |
with gr.Tab("Webcam"):
|
| 883 |
gr.Markdown("Use your webcam or mobile camera for real-time drowsiness detection")
|
| 884 |
with gr.Row():
|
| 885 |
+
webcam_input = gr.Image(label="Camera Feed", type="numpy", streaming=True)
|
| 886 |
webcam_output = gr.Image(label="Processed Feed")
|
| 887 |
with gr.Row():
|
| 888 |
speed_input = gr.Slider(minimum=0, maximum=150, value=60, label="Current Speed (km/h)")
|