Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,7 @@ def main():
|
|
| 119 |
mode=WebRtcMode.SENDRECV,
|
| 120 |
rtc_configuration=RTC_CONFIGURATION,
|
| 121 |
video_frame_callback=FaceRecognitionProcessor().recv,
|
| 122 |
-
media_stream_constraints={"video": True, "audio": False}
|
| 123 |
)
|
| 124 |
if webrtc_ctx.state.playing:
|
| 125 |
st.write("WebRTC is playing.")
|
|
|
|
| 119 |
mode=WebRtcMode.SENDRECV,
|
| 120 |
rtc_configuration=RTC_CONFIGURATION,
|
| 121 |
video_frame_callback=FaceRecognitionProcessor().recv,
|
| 122 |
+
media_stream_constraints={"video": True, "audio": False},async_processing=True
|
| 123 |
)
|
| 124 |
if webrtc_ctx.state.playing:
|
| 125 |
st.write("WebRTC is playing.")
|