Pratyush101 commited on
Commit
6cffe2a
·
verified ·
1 Parent(s): 54293f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -25,8 +25,8 @@ class Button:
25
  self.size = size
26
  self.text = text
27
 
28
- # # Initialize components
29
- # detector = HandDetector(maxHands=1, detectionCon=0.8)
30
  # segmentor = SelfiSegmentation()
31
  # keys = [["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P"],
32
  # ["A", "S", "D", "F", "G", "H", "J", "K", "L", ";"],
@@ -124,9 +124,11 @@ webrtc_ctx = webrtc_streamer(
124
  mode=WebRtcMode.SENDRECV,
125
  rtc_configuration={
126
  "iceServers": get_ice_servers(),
 
127
  },
128
  video_frame_callback=video_frame_callback,
129
  media_stream_constraints={"video": True, "audio": False},
 
130
  )
131
 
132
  st.markdown("### Instructions")
 
25
  self.size = size
26
  self.text = text
27
 
28
+ # Initialize components
29
+ detector = HandDetector(maxHands=1, detectionCon=0.8)
30
  # segmentor = SelfiSegmentation()
31
  # keys = [["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P"],
32
  # ["A", "S", "D", "F", "G", "H", "J", "K", "L", ";"],
 
124
  mode=WebRtcMode.SENDRECV,
125
  rtc_configuration={
126
  "iceServers": get_ice_servers(),
127
+ "iceTransportPolicy": "relay",
128
  },
129
  video_frame_callback=video_frame_callback,
130
  media_stream_constraints={"video": True, "audio": False},
131
+ async_processing=True,
132
  )
133
 
134
  st.markdown("### Instructions")