joshuadunlop commited on
Commit
5bd83d4
·
1 Parent(s): bb745aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -50,13 +50,14 @@ if paste_data:
50
  st.session_state[f"message{row_count}"] = message
51
  row_count += 1
52
  else:
53
- if note_flag:
54
  st.session_state[f"note{row_count}"] = message
55
  else:
56
  st.session_state[f"message{row_count}"] = message
57
  row_count += 1
58
 
59
- note_flag = not note_flag # flip the flag for next iteration
 
60
 
61
  st.session_state.row_count = row_count
62
 
 
50
  st.session_state[f"message{row_count}"] = message
51
  row_count += 1
52
  else:
53
+ if note_flag and show_notes: # Only add to note if Show Notes is enabled
54
  st.session_state[f"note{row_count}"] = message
55
  else:
56
  st.session_state[f"message{row_count}"] = message
57
  row_count += 1
58
 
59
+ if show_notes: # Only toggle the note_flag if Show Notes is enabled
60
+ note_flag = not note_flag # flip the flag for next iteration
61
 
62
  st.session_state.row_count = row_count
63