updated app.py
Browse files
app.py
CHANGED
@@ -326,14 +326,14 @@ if __name__ == "__main__":
|
|
326 |
async_processing=True,
|
327 |
)
|
328 |
|
329 |
-
if st.checkbox("Show the detected labels", value=True):
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
|
338 |
st.markdown(
|
339 |
"This demo uses a model and code from "
|
|
|
326 |
async_processing=True,
|
327 |
)
|
328 |
|
329 |
+
# if st.checkbox("Show the detected labels", value=True):
|
330 |
+
# if webrtc_ctx.state.playing:
|
331 |
+
# labels_placeholder = st.empty()
|
332 |
+
# # NOTE: The video transformation with object detection and
|
333 |
+
# # this loop displaying the result labels are running
|
334 |
+
# # in different threads asynchronously.
|
335 |
+
# # Then the rendered video frames and the labels displayed here
|
336 |
+
# # are not strictly synchronized.
|
337 |
|
338 |
st.markdown(
|
339 |
"This demo uses a model and code from "
|