Pratyush101 commited on
Commit
2c60a92
·
verified ·
1 Parent(s): 404f107

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -57,17 +57,6 @@ webrtc_ctx = webrtc_streamer(
57
  media_stream_constraints={"video": True, "audio": False},
58
  async_processing=True,
59
  )
60
- if st.checkbox("Show the detected labels", value=True):
61
- if webrtc_ctx.state.playing:
62
- labels_placeholder = st.empty()
63
- # NOTE: The video transformation with object detection and
64
- # this loop displaying the result labels are running
65
- # in different threads asynchronously.
66
- # Then the rendered video frames and the labels displayed here
67
- # are not strictly synchronized.
68
- while True:
69
- result = result_queue.get()
70
- labels_placeholder.table(result)
71
 
72
 
73
  # Output text display
 
57
  media_stream_constraints={"video": True, "audio": False},
58
  async_processing=True,
59
  )
 
 
 
 
 
 
 
 
 
 
 
60
 
61
 
62
  # Output text display