Pratyush101 commited on
Commit
ffb8439
·
verified ·
1 Parent(s): 8201911

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def video_frame_callback(frame):
47
  output_text = process_video_frame(frame, detector, segmentor, imgList, indexImg, keys, st.session_state)
48
  # Put the processed output text into the queue
49
  result_queue.put(output_text)
50
- return frame # Return the processed frame for
51
 
52
  webrtc_ctx = webrtc_streamer(
53
  key="keyboard-demo",
 
47
  output_text = process_video_frame(frame, detector, segmentor, imgList, indexImg, keys, st.session_state)
48
  # Put the processed output text into the queue
49
  result_queue.put(output_text)
50
+ return av.VideoFrame.from_ndarray(flipped, format="bgr24")
51
 
52
  webrtc_ctx = webrtc_streamer(
53
  key="keyboard-demo",