Pratyush101 commited on
Commit
abdefc3
·
verified ·
1 Parent(s): 4a6e2df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -49,6 +49,7 @@ prev_key_time = [time.time()] * 2
49
 
50
  if "output_text" not in st.session_state:
51
  st.session_state["output_text"] = ""
 
52
 
53
  # Video Frame Callback with Your Logic
54
  def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
@@ -127,7 +128,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
127
  # st.session_state["output_text"] += ' ' # Add space
128
  change=False
129
  if change==False:
130
- st.session_state["output_text"] = "hi"
131
  change=True
132
 
133
 
@@ -137,7 +138,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
137
 
138
  st.text_area("Typed Text", st.session_state["output_text"], height=150)
139
 
140
- st.write(st.session_state["output_text"])
141
 
142
  # WebRTC Streamer
143
  webrtc_streamer(
 
49
 
50
  if "output_text" not in st.session_state:
51
  st.session_state["output_text"] = ""
52
+ text=""
53
 
54
  # Video Frame Callback with Your Logic
55
  def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
 
128
  # st.session_state["output_text"] += ' ' # Add space
129
  change=False
130
  if change==False:
131
+ text = "hi"
132
  change=True
133
 
134
 
 
138
 
139
  st.text_area("Typed Text", st.session_state["output_text"], height=150)
140
 
141
+ st.write(text)
142
 
143
  # WebRTC Streamer
144
  webrtc_streamer(