Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from streamlit_webrtc import webrtc_streamer
|
3 |
import av
|
4 |
|
5 |
st.title("Webcam Display Streamlit App")
|
@@ -16,5 +16,5 @@ webrtc_streamer(
|
|
16 |
key="streamer",
|
17 |
video_frame_callback=transform, # The transform function is only used to process frames
|
18 |
sendback_audio=False, # We don't need audio in this case
|
19 |
-
mode=
|
20 |
)
|
|
|
1 |
import streamlit as st
|
2 |
+
from streamlit_webrtc import webrtc_streamer, WebRtcMode
|
3 |
import av
|
4 |
|
5 |
st.title("Webcam Display Streamlit App")
|
|
|
16 |
key="streamer",
|
17 |
video_frame_callback=transform, # The transform function is only used to process frames
|
18 |
sendback_audio=False, # We don't need audio in this case
|
19 |
+
mode=WebRtcMode.SENDRECV, # Use WebRtcMode enum instead of string
|
20 |
)
|