Spaces:
Build error
Build error
Regino commited on
Commit ·
6f5fce0
1
Parent(s): f9b42e1
sbdfbd
Browse files150 unmodified lines151152153154155156157158159160161150 unmodified linesmedia_stream_constraints={"video": True, "audio": False}, # Only video, no audioasync_processing=True, # Process frames asynchronously# desired_playing_state={"playing": True}, # Optional: tries to auto-start. Can comment out.)# Provide feedback based on the stream stateif webrtc_ctx.state.playing:st.success("Webcam stream active. Looking for faces...")else:st.info("Webcam stream not active. Click the 'Start' button above to begin, and allow camera access.")150 unmodified lines151152153154155156157158159160161162163164165166167168169170171150 unmodified linesmedia_stream_constraints={"video": True, "audio": False}, # Only video, no audioasync_processing=True, # Process frames asynchronously# desired_playing_state={"playing": True}, # Optional: tries to auto-start. Can comment out.# --- ADD THIS LINE HERE ---rtc_configuration={"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]},# You can add more STUN servers for redundancy if needed, like:# rtc_configuration={# "iceServers": [# {"urls": ["stun:stun.l.google.com:19302"]},# {"urls": ["stun:stun1.l.google.com:19302"]},# {"urls": ["stun:stun.services.mozilla.com"]}# ]# },)# Provide feedback based on the stream stateif webrtc_ctx.state.playing:st.success("Webcam stream active. Looking for faces...")else:st.info("Webcam stream not active. Click the 'Start' button above to begin, and allow camera access.")
src/streamlit_app.py+12-2