awacke1 commited on
Commit
19131c7
·
verified ·
1 Parent(s): 9c7b89e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -222,9 +222,11 @@ if component:
222
  data = component
223
  if isinstance(data, dict) and data.get('type') == 'transcript':
224
  st.session_state.transcript_history.append(data['text'])
225
- st.experimental_rerun()
 
226
  elif isinstance(data, dict) and data.get('type') == 'clear':
227
  st.session_state.transcript_history = []
228
- st.experimental_rerun()
 
229
  except Exception as e:
230
  st.error(f"Error processing transcript: {e}")
 
222
  data = component
223
  if isinstance(data, dict) and data.get('type') == 'transcript':
224
  st.session_state.transcript_history.append(data['text'])
225
+ #st.experimental_rerun()
226
+ st.rerun()
227
  elif isinstance(data, dict) and data.get('type') == 'clear':
228
  st.session_state.transcript_history = []
229
+ #st.experimental_rerun()
230
+ st.rerun()
231
  except Exception as e:
232
  st.error(f"Error processing transcript: {e}")